From dfce032b13bc96a09a27d09e355bf4b4d71484b4 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Sat, 14 Feb 2015 14:54:25 -0500 Subject: [PATCH] Fix: check if test plan exist --- babeltrace/babeltrace-master.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.34.1