ref: 65c02369b7b2c94e3832bb2a333b98bca852ada6
parent: 04d69fa430ac53cbed054fda7f86e8a7feb21d77
author: Mura Li <mura_li@castech.com.tw>
date: Wed Jan 31 09:35:12 EST 2018
Fix missing condition in runtest.sh
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -84,7 +84,7 @@
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 @@
# Should fail
F() {
- if ! belongto "$test" "$MTEST_SUBSET"; then
+ if [ -n "$MTEST_SUBSET" ] && ! belongto "$test" "$MTEST_SUBSET"; then
return 1
fi