From: Loic Dachary Date: Fri, 20 Dec 2013 20:13:00 +0000 (+0100) Subject: unittests: fail if one test fail X-Git-Tag: v0.75~59^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=98a1525307bffac5125823e96c3007c7b0e34e02;p=ceph.git unittests: fail if one test fail vstart_wrapped_tests must return on error if one of the tests fail. Signed-off-by: Loic Dachary --- diff --git a/src/test/vstart_wrapped_tests.sh b/src/test/vstart_wrapped_tests.sh index 2eadf2fe163c..71148af74c64 100755 --- a/src/test/vstart_wrapped_tests.sh +++ b/src/test/vstart_wrapped_tests.sh @@ -14,13 +14,17 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library Public License for more details. # +code=0 echo "Run unit tests that need a cluster, using vstart.sh" while read line ; do echo "================ START ================" echo "$line" echo "=======================================" - test/vstart_wrapper.sh $line + if ! test/vstart_wrapper.sh $line ; then + code=1 + fi echo "================ STOP =================" done <