summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonuț Arțăriși <iartarisi@suse.cz>2012-04-18 15:12:10 +0300
committerIonuț Arțăriși <iartarisi@suse.cz>2012-04-18 15:13:09 +0300
commitc51788a4ac225f361c7307f8e0d4c92022ad73b5 (patch)
treec888717eb5ce3b5c2bd5fedfe7e08f742e4e6a5d
parent40cbff9fd3913bb7d36e2c145367c740dfc2d47b (diff)
downloadswift-c51788a4ac225f361c7307f8e0d4c92022ad73b5.tar.gz
make test runner functions return the status of running the tests
This makes it a lot easier for CI jobs to be setup and return the true status of the testsuite. Change-Id: I0c2b0d6b17f560a889cd2f22ab98a68361f6d738
-rwxr-xr-x.functests4
-rwxr-xr-x.probetests3
-rwxr-xr-x.unittests2
3 files changed, 9 insertions, 0 deletions
diff --git a/.functests b/.functests
index a7be2b398..56898294e 100755
--- a/.functests
+++ b/.functests
@@ -2,8 +2,12 @@
cd test/functional
nosetests --exe $@
+func1=$?
cd -
cd test/functionalnosetests
nosetests --exe $@
+func2=$?
cd -
+
+exit $((func1 + func2))
diff --git a/.probetests b/.probetests
index 38d8520a1..67d25aae8 100755
--- a/.probetests
+++ b/.probetests
@@ -2,4 +2,7 @@
cd test/probe
nosetests --exe
+rvalue=$?
cd -
+
+exit $rvalue
diff --git a/.unittests b/.unittests
index 6f99aecdb..773c2cb83 100755
--- a/.unittests
+++ b/.unittests
@@ -2,5 +2,7 @@
cd test/unit
nosetests --exe --with-coverage --cover-package swift --cover-erase $@
+rvalue=$?
rm -f .coverage
cd -
+exit $rvalue \ No newline at end of file