From 05f80bf9fc26a35a62132daed17fc9e3d3a228e7 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Mon, 29 Feb 2016 01:08:46 +0000 Subject: [PATCH] fix the exit on fail test --- tests/Flags/-e,--exit-on-fail | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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