diff --git a/tests/Flags/-e,--exit-on-fail b/tests/Flags/-e,--exit-on-fail index 2afeda7..991b6ef 100755 --- a/tests/Flags/-e,--exit-on-fail +++ b/tests/Flags/-e,--exit-on-fail @@ -1,12 +1,10 @@ #!/bin/sh - -$TEST_SHELL ../../urchin --run-in-series --exit-on-fail \ - ./.test_-e,--exit-on-fail > $tmp -result=$? - set -e + +! $TEST_SHELL ../../urchin --run-in-series --exit-on-fail \ + ./.test_-e,--exit-on-fail > $tmp + grep '1 should run.' $tmp grep '2 should run.' $tmp grep -v '3 should not run.' $tmp grep -v '4 should not run.' $tmp -exit $result