From: Jonathan Rajotte Date: Sat, 14 Feb 2015 19:54:25 +0000 (-0500) Subject: Fix: check if test plan exist X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dfce032b13bc96a09a27d09e355bf4b4d71484b4;p=lttng-ci.git Fix: check if test plan exist --- diff --git a/babeltrace/babeltrace-master.sh b/babeltrace/babeltrace-master.sh index b37c4de..8c3ac39 100755 --- a/babeltrace/babeltrace-master.sh +++ b/babeltrace/babeltrace-master.sh @@ -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