anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0679-travis-temporarily-skip-test_path_changed.patch

c62b8e
From 7c1d32eb199490e6b9af4fbe84652d5b2e822427 Mon Sep 17 00:00:00 2001
c62b8e
From: Frantisek Sumsal <fsumsal@redhat.com>
c62b8e
Date: Wed, 16 Jan 2019 09:49:14 +0100
c62b8e
Subject: [PATCH] travis: temporarily skip test_path_changed
c62b8e
c62b8e
---
c62b8e
 ci/travis-centos-rhel7.sh | 8 ++++++++
c62b8e
 1 file changed, 8 insertions(+)
c62b8e
c62b8e
diff --git a/ci/travis-centos-rhel7.sh b/ci/travis-centos-rhel7.sh
c62b8e
index b1b3de1cc2..870f4d8e33 100755
c62b8e
--- a/ci/travis-centos-rhel7.sh
c62b8e
+++ b/ci/travis-centos-rhel7.sh
c62b8e
@@ -52,6 +52,14 @@ for phase in "${PHASES[@]}"; do
c62b8e
                                      --enable-gtk-doc --enable-compat-libs --disable-sysusers \
c62b8e
                                      --disable-ldconfig --enable-lz4 --with-sysvinit-path=/etc/rc.d/init.d
c62b8e
             $DOCKER_EXEC make
c62b8e
+            # Temporarily skip test_path_changed in src/test/test-path.c
c62b8e
+            # This particular test case timeouts on Ubuntu in a Docker image
c62b8e
+            # and needs further debugging (couldn't reproduce it on
c62b8e
+            # Fedora + Docker
c62b8e
+            $DOCKER_EXEC sed -i '/static void test_path_changed/,/^}\s*$/d' src/test/test-path.c
c62b8e
+            $DOCKER_EXEC sed -i '/test_path_changed,/d' src/test/test-path.c
c62b8e
+
c62b8e
+            # Run the internal testsuite
c62b8e
             if ! $DOCKER_EXEC make check; then
c62b8e
                 $DOCKER_EXEC cat test-suite.log
c62b8e
                 exit 1