From c51788a4ac225f361c7307f8e0d4c92022ad73b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionu=C8=9B=20Ar=C8=9B=C4=83ri=C8=99i?= Date: Wed, 18 Apr 2012 15:12:10 +0300 Subject: [PATCH] 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 --- .functests | 4 ++++ .probetests | 3 +++ .unittests | 2 ++ 3 files changed, 9 insertions(+) diff --git a/.functests b/.functests index a7be2b3981..56898294eb 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 38d8520a1d..67d25aae8d 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 6f99aecdb8..773c2cb836 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