diff options
author | Mura Li <mura_li@castech.com.tw> | 2018-01-31 14:35:12 +0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2018-01-31 04:46:11 -0800 |
commit | 65c02369b7b2c94e3832bb2a333b98bca852ada6 (patch) | |
tree | 124be73f2fcf3350fb2d5c0201a84f8b6eda542c | |
parent | 04d69fa430ac53cbed054fda7f86e8a7feb21d77 (diff) | |
download | mc-65c02369b7b2c94e3832bb2a333b98bca852ada6.tar.gz |
Fix missing condition in runtest.sh
-rwxr-xr-x | test/runtest.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/runtest.sh b/test/runtest.sh index c8990a6..16ca68b 100755 --- a/test/runtest.sh +++ b/test/runtest.sh @@ -84,7 +84,7 @@ B() { test="$1"; shift type="$1"; shift - if ! belongto "$test" "$MTEST_SUBSET"; then + if [ -n "$MTEST_SUBSET" ] && ! belongto "$test" "$MTEST_SUBSET"; then return 1 fi @@ -106,7 +106,7 @@ B() { # Should fail F() { - if ! belongto "$test" "$MTEST_SUBSET"; then + if [ -n "$MTEST_SUBSET" ] && ! belongto "$test" "$MTEST_SUBSET"; then return 1 fi |