Skip to content

Commit c51788a

Browse files
committed
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
1 parent 40cbff9 commit c51788a

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.functests

+4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
cd test/functional
44
nosetests --exe $@
5+
func1=$?
56
cd -
67

78
cd test/functionalnosetests
89
nosetests --exe $@
10+
func2=$?
911
cd -
12+
13+
exit $((func1 + func2))

.probetests

+3
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
cd test/probe
44
nosetests --exe
5+
rvalue=$?
56
cd -
7+
8+
exit $rvalue

.unittests

+2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22

33
cd test/unit
44
nosetests --exe --with-coverage --cover-package swift --cover-erase $@
5+
rvalue=$?
56
rm -f .coverage
67
cd -
8+
exit $rvalue

0 commit comments

Comments
 (0)