@@ -72,6 +72,12 @@ declare -i TNESTED=0 # just for sanity checking
expect_pass() {
local -i ret
+ if [ -n "$TST_LIST" ] && [ "${TST_LIST/$1/}" = $TST_LIST ]; then
+ [ "$VERBOSE" -gt 1 ] && echo "____ SKIP test: $*"
+ testsskip+=1
+ return $SKIP
+ fi
+
if [ $TNESTED -gt 0 ]; then
echo $RED"expect_pass should not be run nested"$NORM
testsfail+=1
@@ -98,6 +104,12 @@ expect_pass() {
expect_fail() {
local ret
+ if [ -n "$TST_LIST" ] && [ "${TST_LIST/$1/}" = $TST_LIST ]; then
+ [ "$VERBOSE" -gt 1 ] && echo "____ SKIP test: $*"
+ testsskip+=1
+ return $SKIP
+ fi
+
if [ $TNESTED -gt 0 ]; then
echo $RED"expect_fail should not be run nested"$NORM
testsfail+=1