summaryrefslogtreecommitdiff
path: root/.alltests
diff options
context:
space:
mode:
authorOndřej Nový <ondrej.novy@firma.seznam.cz>2016-08-18 09:48:45 +0200
committerOndřej Nový <ondrej.novy@firma.seznam.cz>2016-10-11 22:13:06 +0200
commit19102c6e7f501241f36e5e40d27ab3ba5dcc6655 (patch)
treee5c8b38575d5b243acda43e33ed6a4a38082e0ef /.alltests
parent9be2a58576f391f5db8dfc393115b1fe6a660d8c (diff)
downloadswift-19102c6e7f501241f36e5e40d27ab3ba5dcc6655.tar.gz
Apply bash error handling consistently in all bash scripts
Change-Id: I36dcff9cc2593bcfb6aebbe84b59d95c711eb3e4
Diffstat (limited to '.alltests')
-rwxr-xr-x.alltests15
1 files changed, 2 insertions, 13 deletions
diff --git a/.alltests b/.alltests
index bccb126cb..ac30d5738 100755
--- a/.alltests
+++ b/.alltests
@@ -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
-