ryantimwilson / rpms / systemd

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