]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
unittests: fail if one test fail
authorLoic Dachary <loic@dachary.org>
Fri, 20 Dec 2013 20:13:00 +0000 (21:13 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 20 Dec 2013 20:13:00 +0000 (21:13 +0100)
vstart_wrapped_tests must return on error if one of the tests
fail.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/vstart_wrapped_tests.sh

index 2eadf2fe163c3d1c1851f5cc1190cab1fa20a04e..71148af74c642cf535d904464816ba69e77d06de 100755 (executable)
 # 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 <<EOF
 ../qa/workunits/cephtool/test.sh
 EOF
+exit $code