urchin/tests/Flags/-e,--exit-on-fail

13 lines
241 B
Plaintext
Raw Normal View History

2016-02-28 14:43:32 -05:00
#!/bin/sh
2016-02-28 14:45:18 -05:00
../../urchin --run-in-series --exit-on-fail \
./.test_-e,--exit-on-fail > $tmp
2016-01-25 09:14:13 -05:00
result=$?
2016-02-28 14:43:32 -05:00
set -e
2016-01-25 09:14:13 -05:00
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