From: Jonathan Rajotte Date: Sat, 14 Feb 2015 20:09:42 +0000 (-0500) Subject: Fix: check if test plan exist X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5c3166590965336e2ac4cbd3bdbc62c2f36d22a4;p=lttng-ci.git Fix: check if test plan exist --- diff --git a/babeltrace/babeltrace-stable-1.2.sh b/babeltrace/babeltrace-stable-1.2.sh index b37c4de..13c4ec6 100755 --- a/babeltrace/babeltrace-stable-1.2.sh +++ b/babeltrace/babeltrace-stable-1.2.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