diff options
| -rw-r--r-- | tests/include.rc | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/include.rc b/tests/include.rc index 0369d26109b..44259872a9d 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -67,10 +67,10 @@ function test_expect_footer()          local a=$2          local err="" -        if [ "x${e}" != "x${a}" ]; then +        if ! [[ "$a" =~ $e ]]; then                  err="Got \"$a\" instead of \"$e\""          fi -        [[ "x${e}" == "x${a}" ]]; +        [[ "$a" =~ $e ]];          test_footer "$err";  } @@ -96,11 +96,11 @@ function test_expect_not_footer()          local a=$2          local err="" -        if [ "x${e}" == "x${a}" ]; then +        if [[ "$a" =~ $e ]]; then                  err="Got \"$a\" when not expecting it"          fi -        [[ "x${e}" != "x${a}" ]]; +        ! [[ "$a" =~ "$e" ]];          test_footer "$err";  }  | 
