urchin/tests.old/Exit on fail if -e is passed.
2016-02-28 18:24:14 +00:00

12 lines
203 B
Plaintext
Executable File

tmp=$(mktemp)
../urchin -e -f ./.die-on-fail > $tmp
result=$?
grep '1 should run.' $tmp
grep '2 should run.' $tmp
grep -v '3 should not run.' $tmp
grep -v '4 should not run.' $tmp
rm $tmp
exit $result