urchin/tests/Exit on fail if -e is passed.
2016-01-28 15:24:24 +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