naccyde / rpms / systemd

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