jjb: archive top-level test suite log
[lttng-ci.git] / scripts / lttng-ust / build.sh
index 65c405c5e1093d167232ccf460378cc68d5913cc..b31f8ff817392bc8b72b8776f0f831ba4fd77689 100755 (executable)
@@ -98,6 +98,7 @@ SRCDIR="$WORKSPACE/src/lttng-ust"
 TMPDIR="$WORKSPACE/tmp"
 PREFIX="/build"
 LIBDIR="lib"
+LIBDIR_ARCH="$LIBDIR"
 
 # RHEL and SLES both use lib64 but don't bother shipping a default autoconf
 # site config that matches this.
@@ -105,8 +106,6 @@ if [[ ( -f /etc/redhat-release || -f /etc/SuSE-release || -f /etc/yocto-release
     # Detect the userspace bitness in a distro agnostic way
     if file -L /bin/bash | grep '64-bit' >/dev/null 2>&1; then
         LIBDIR_ARCH="${LIBDIR}64"
-    else
-        LIBDIR_ARCH="$LIBDIR"
     fi
 fi
 
@@ -332,6 +331,9 @@ if [ "$LTTNG_UST_RUN_TESTS" = "yes" ]; then
     # 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"
 
+    # Copy the test suites top-level log which includes all tests failures
+    rsync -a --include 'test-suite.log' --include '*/' --exclude='*' tests/ "$WORKSPACE/log"
+
     # 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"
This page took 0.022373 seconds and 4 git commands to generate.