Skip to content
Browse files

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
  • Loading branch information...
1 parent 40cbff9 commit c51788a4ac225f361c7307f8e0d4c92022ad73b5 @mapleoin mapleoin committed
Showing with 9 additions and 0 deletions.
  1. +4 −0 .functests
  2. +3 −0 .probetests
  3. +2 −0 .unittests
View
4 .functests
@@ -2,8 +2,12 @@
cd test/functional
nosetests --exe $@
+func1=$?
cd -
cd test/functionalnosetests
nosetests --exe $@
+func2=$?
cd -
+
+exit $((func1 + func2))
View
3 .probetests
@@ -2,4 +2,7 @@
cd test/probe
nosetests --exe
+rvalue=$?
cd -
+
+exit $rvalue
View
2 .unittests
@@ -2,5 +2,7 @@
cd test/unit
nosetests --exe --with-coverage --cover-package swift --cover-erase $@
+rvalue=$?
rm -f .coverage
cd -
+exit $rvalue

0 comments on commit c51788a

Please sign in to comment.
Something went wrong with that request. Please try again.