Fix: check if test plan exist
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Sat, 14 Feb 2015 19:54:25 +0000 (14:54 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Sat, 14 Feb 2015 19:54:25 +0000 (14:54 -0500)
babeltrace/babeltrace-master.sh

index b37c4decbf420a9a9a4780537ab95ff1a3e7fca0..8c3ac393d3fd4b6db6ce21d2951ddb04041c1f47 100755 (executable)
@@ -76,7 +76,12 @@ mkdir -p $WORKSPACE/tap
 cd $BUILD_PATH/tests
 
 # Run make check tests
-prove --merge --exec '' - < $BUILD_PATH/tests/tests --archive $WORKSPACE/tap/ || true
+if [[ -e $BUILD_PATH/tests/tests ]]; then
+       prove --merge --exec '' - < $BUILD_PATH/tests/tests --archive $WORKSPACE/tap/ || true
+else
+       echo "Missing test plan"
+       exit 1
+fi
 
 # TAP plugin is having a hard time with .yml files.
 rm -f $WORKSPACE/tap/meta.yml
This page took 0.023788 seconds and 4 git commands to generate.