summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMura Li <mura_li@castech.com.tw>2018-01-31 14:35:12 +0800
committerOri Bernstein <ori@eigenstate.org>2018-01-31 04:46:11 -0800
commit65c02369b7b2c94e3832bb2a333b98bca852ada6 (patch)
tree124be73f2fcf3350fb2d5c0201a84f8b6eda542c /test
parent04d69fa430ac53cbed054fda7f86e8a7feb21d77 (diff)
downloadmc-65c02369b7b2c94e3832bb2a333b98bca852ada6.tar.gz
Fix missing condition in runtest.sh
Diffstat (limited to 'test')
-rwxr-xr-xtest/runtest.sh4
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