diff options
author | Ondřej Nový <ondrej.novy@firma.seznam.cz> | 2016-08-18 09:48:45 +0200 |
---|---|---|
committer | Ondřej Nový <ondrej.novy@firma.seznam.cz> | 2016-10-11 22:13:06 +0200 |
commit | 19102c6e7f501241f36e5e40d27ab3ba5dcc6655 (patch) | |
tree | e5c8b38575d5b243acda43e33ed6a4a38082e0ef /.alltests | |
parent | 9be2a58576f391f5db8dfc393115b1fe6a660d8c (diff) | |
download | swift-19102c6e7f501241f36e5e40d27ab3ba5dcc6655.tar.gz |
Apply bash error handling consistently in all bash scripts
Change-Id: I36dcff9cc2593bcfb6aebbe84b59d95c711eb3e4
Diffstat (limited to '.alltests')
-rwxr-xr-x | .alltests | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -1,33 +1,22 @@ #!/bin/bash +set -e + TOP_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))") echo "==== Unit tests ====" resetswift $TOP_DIR/.unittests $@ -rvalue=$? -if [ $rvalue != 0 ] ; then - exit $rvalue -fi echo "==== Func tests ====" resetswift startmain $TOP_DIR/.functests $@ -rvalue=$? -if [ $rvalue != 0 ] ; then - exit $rvalue -fi echo "==== Probe tests ====" resetswift $TOP_DIR/.probetests $@ -rvalue=$? -if [ $rvalue != 0 ] ; then - exit $rvalue -fi echo "All tests runs fine" exit 0 - |