add TEST_GREP to scripts/test

This commit is contained in:
Sebastian McKenzie 2015-07-15 13:52:12 +01:00
parent 8d70ab5853
commit 91e59cf2bb

View File

@ -1,6 +1,10 @@
#!/bin/sh #!/bin/sh
set -e set -e
if [ -z "$TEST_GREP" ]; then
TEST_GREP=""
fi
TEST_DIRS="" TEST_DIRS=""
for f in packages/*; do for f in packages/*; do
@ -13,4 +17,4 @@ for f in packages/*; do
fi fi
done done
node node_modules/mocha/bin/_mocha $TEST_DIRS --reporter dot --ui tdd node node_modules/mocha/bin/_mocha $TEST_DIRS --reporter dot --ui tdd --grep "$TEST_GREP"