valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0223-travis-don-t-run-slow-tests-under-ASan-UBSan.patch

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