`/bin/sh` isn't always an alias of `/bin/bash`, so bash-specific syntax broke the scripts.
(like 777a9ae6e4/scripts/_get-test-directories.sh (L7))
15 lines
264 B
Bash
Executable File
15 lines
264 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ -z "$TEST_GREP" ]; then
|
|
TEST_GREP=""
|
|
fi
|
|
|
|
node="node"
|
|
|
|
if [ "$TEST_DEBUG" ]; then
|
|
node="node --inspect --debug-brk"
|
|
fi
|
|
|
|
$node node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --grep "$TEST_GREP"
|