From 0fe4a4b410e195688157fab0fa38d89b9d69237c Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 18 Jul 2019 15:11:55 -0400 Subject: [PATCH] jjb: lltng-ust: no tap logs prior to 2.8 Signed-off-by: Michael Jeanson --- scripts/lttng-ust/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/lttng-ust/build.sh b/scripts/lttng-ust/build.sh index 4f36982..5fc1a6d 100755 --- a/scripts/lttng-ust/build.sh +++ b/scripts/lttng-ust/build.sh @@ -298,6 +298,13 @@ $MAKE --keep-going check || failed_tests=1 # Copy tap logs for the jenkins tap parser before cleaning the build dir rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$WORKSPACE/tap" +# The test suite prior to 2.8 did not produce TAP logs +if verlt "$PACKAGE_VERSION" "2.8"; then + mkdir -p "$WORKSPACE/tap/no-log" + echo "1..1" > "$WORKSPACE/tap/no-log/tests.log" + echo "ok 1 - Test suite doesn't support logging" >> "$WORKSPACE/tap/no-log/tests.log" +fi + # Clean the build directory $MAKE clean -- 2.34.1