Fix: check if test plan exist
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Sat, 14 Feb 2015 20:09:42 +0000 (15:09 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Sat, 14 Feb 2015 20:09:42 +0000 (15:09 -0500)
babeltrace/babeltrace-stable-1.2.sh

index b37c4decbf420a9a9a4780537ab95ff1a3e7fca0..13c4ec6d9906c43a4b9c6df128bc85e5433335e4 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.023248 seconds and 4 git commands to generate.