dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
b9a53a
From 5b14988845b591f6fa2fc1e032618fe882827f4a Mon Sep 17 00:00:00 2001
b9a53a
From: Frantisek Sumsal <fsumsal@redhat.com>
b9a53a
Date: Mon, 14 Oct 2019 16:22:51 +0200
b9a53a
Subject: [PATCH] travis: drop SCL remains
b9a53a
b9a53a
The `bash -ic` wrapper existed solely to make SCL work as expected
b9a53a
b9a53a
Resolves: #1761519
b9a53a
---
b9a53a
 ci/travis-centos-rhel8.sh | 16 +++-------------
b9a53a
 1 file changed, 3 insertions(+), 13 deletions(-)
b9a53a
b9a53a
diff --git a/ci/travis-centos-rhel8.sh b/ci/travis-centos-rhel8.sh
b9a53a
index ade44a0413..da131c726b 100755
b9a53a
--- a/ci/travis-centos-rhel8.sh
b9a53a
+++ b/ci/travis-centos-rhel8.sh
b9a53a
@@ -113,22 +113,12 @@ for phase in "${PHASES[@]}"; do
b9a53a
             $DOCKER_EXEC ninja -C build test
b9a53a
             ;;
b9a53a
         RUN_ASAN|RUN_CLANG_ASAN)
b9a53a
-            # Note to my future frustrated self: docker exec runs the given command
b9a53a
-            # as sh -c 'command' - which means both .bash_profile and .bashrc will
b9a53a
-            # be ignored. That's because .bash_profile is sourced for LOGIN shells (i.e.
b9a53a
-            # sh -l), whereas .bashrc is sourced for NON-LOGIN INTERACTIVE shells
b9a53a
-            # (i.e. sh -i).
b9a53a
-            # As the default docker exec command lacks either of those options,
b9a53a
-            # we need to use a wrapper command which runs the wanted command
b9a53a
-            # under an explicit bash -i, so the SCL source above works properly.
b9a53a
-            docker exec -it $CONT_NAME bash -ic 'gcc --version'
b9a53a
-
b9a53a
             if [[ "$phase" = "RUN_CLANG_ASAN" ]]; then
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 bash -ic "meson build --werror -Dtests=unsafe -Db_sanitize=address,undefined $MESON_ARGS ${CONFIGURE_OPTS[@]}"
b9a53a
-            docker exec -it $CONT_NAME bash -ic 'ninja -v -C build'
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.
b9a53a
             travis_wait docker exec --interactive=false \
b9a53a
@@ -136,7 +126,7 @@ for phase in "${PHASES[@]}"; do
b9a53a
                 -e ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1 \
b9a53a
                 -e "TRAVIS=$TRAVIS" \
b9a53a
                 -t $CONT_NAME \
b9a53a
-                bash -ic 'meson test --timeout-multiplier=3 -C ./build/ --print-errorlogs'
b9a53a
+                meson test --timeout-multiplier=3 -C ./build/ --print-errorlogs
b9a53a
             ;;
b9a53a
         CLEANUP)
b9a53a
             info "Cleanup phase"