ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
Brian Stinson 2593d8
From 2f44943836b69455792a5422673f8a69bc9705ba Mon Sep 17 00:00:00 2001
Brian Stinson 2593d8
From: Frantisek Sumsal <fsumsal@redhat.com>
Brian Stinson 2593d8
Date: Mon, 14 Oct 2019 17:14:35 +0200
Brian Stinson 2593d8
Subject: [PATCH] travis: don't run slow tests under ASan/UBSan
Brian Stinson 2593d8
Brian Stinson 2593d8
Resolves: #1761519
Brian Stinson 2593d8
---
Brian Stinson 2593d8
 ci/travis-centos-rhel8.sh | 8 ++------
Brian Stinson 2593d8
 1 file changed, 2 insertions(+), 6 deletions(-)
Brian Stinson 2593d8
Brian Stinson 2593d8
diff --git a/ci/travis-centos-rhel8.sh b/ci/travis-centos-rhel8.sh
Brian Stinson 2593d8
index da131c726b..a1502e15ee 100755
Brian Stinson 2593d8
--- a/ci/travis-centos-rhel8.sh
Brian Stinson 2593d8
+++ b/ci/travis-centos-rhel8.sh
Brian Stinson 2593d8
@@ -65,10 +65,6 @@ CONFIGURE_OPTS=(
Brian Stinson 2593d8
     -Dnetworkd=false
Brian Stinson 2593d8
     -Dtimesyncd=false
Brian Stinson 2593d8
     -Ddefault-hierarchy=legacy
Brian Stinson 2593d8
-    # Custom options
Brian Stinson 2593d8
-    -Dslow-tests=true
Brian Stinson 2593d8
-    -Dtests=unsafe
Brian Stinson 2593d8
-    -Dinstall-tests=true
Brian Stinson 2593d8
 )
Brian Stinson 2593d8
 
Brian Stinson 2593d8
 function info() {
Brian Stinson 2593d8
@@ -104,7 +100,7 @@ for phase in "${PHASES[@]}"; do
Brian Stinson 2593d8
         RUN)
Brian Stinson 2593d8
             info "Run phase"
Brian Stinson 2593d8
             # Build systemd
Brian Stinson 2593d8
-            docker exec -it -e CFLAGS='-g -O0 -ftrapv' $CONT_NAME meson build "${CONFIGURE_OPTS[@]}"
Brian Stinson 2593d8
+            docker exec -it -e CFLAGS='-g -O0 -ftrapv' $CONT_NAME meson build -Dtests=unsafe -Dslow-tests=true "${CONFIGURE_OPTS[@]}"
Brian Stinson 2593d8
             $DOCKER_EXEC ninja -v -C build
Brian Stinson 2593d8
             # Let's install the new systemd and "reboot" the container to avoid
Brian Stinson 2593d8
             # unexpected fails due to incompatibilities with older systemd
Brian Stinson 2593d8
@@ -117,7 +113,7 @@ for phase in "${PHASES[@]}"; do
Brian Stinson 2593d8
                 ENV_VARS="-e CC=clang -e CXX=clang++"
Brian Stinson 2593d8
                 MESON_ARGS="-Db_lundef=false" # See https://github.com/mesonbuild/meson/issues/764
Brian Stinson 2593d8
             fi
Brian Stinson 2593d8
-            docker exec $ENV_VARS -it $CONT_NAME meson build --werror -Dtests=unsafe -Db_sanitize=address,undefined $MESON_ARGS ${CONFIGURE_OPTS[@]}
Brian Stinson 2593d8
+            docker exec $ENV_VARS -it $CONT_NAME meson build --werror -Dtests=unsafe -Db_sanitize=address,undefined $MESON_ARGS "${CONFIGURE_OPTS[@]}"
Brian Stinson 2593d8
             docker exec -it $CONT_NAME ninja -v -C build
Brian Stinson 2593d8
 
Brian Stinson 2593d8
             # Never remove halt_on_error from UBSAN_OPTIONS. See https://github.com/systemd/systemd/commit/2614d83aa06592aedb.