jjb: babeltrace: fix tap for bt < 1.5
[lttng-ci.git] / scripts / babeltrace / build.sh
index c18423de4deac6d28df702719ce15448e925f748..910ce3a7667feae904c866f58deaa284633358d6 100755 (executable)
@@ -351,6 +351,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 1.5 did not produce TAP logs
+if verlt "$PACKAGE_VERSION" "1.5"; 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
 
This page took 0.023615 seconds and 4 git commands to generate.