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