]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Revert "CI: run unit tests in a network namespace" 20877/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 29 Sep 2021 08:37:21 +0000 (17:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 29 Sep 2021 11:50:37 +0000 (20:50 +0900)
This reverts commit 8b036b223a40fac9e53189db05d3798ec11eb475.

.github/workflows/unit_tests.sh

index 4188047cf06c15d4fac20abcd855d751243bc1dd..17e73f1856c4a20b0e029da9cb16fcd92f2a8358 100755 (executable)
@@ -6,7 +6,6 @@ ADDITIONAL_DEPS=(
     clang
     expect
     fdisk
-    iproute2
     jekyll
     lcov
     libfdisk-dev
@@ -20,7 +19,6 @@ ADDITIONAL_DEPS=(
     perl
     python3-libevdev
     python3-pyparsing
-    util-linux
     zstd
 )
 
@@ -55,8 +53,7 @@ for phase in "${PHASES[@]}"; do
             fi
             meson --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build
             ninja -C build -v
-            # Some of the unsafe tests irreparably break the host's network connectivity, so run them in a namespace
-            unshare -n bash -c 'ip link set dev lo up; meson test -C build --print-errorlogs'
+            meson test -C build --print-errorlogs
             if [[ "$phase" = "RUN_GCC" ]]; then
                 ninja -C build coverage
             fi
@@ -88,7 +85,7 @@ for phase in "${PHASES[@]}"; do
             # during debugging, wonderful), so let's at least keep a workaround
             # here to make the builds stable for the time being.
             (set +x; while :; do echo -ne "\n[WATCHDOG] $(date)\n"; sleep 30; done) &
-            unshare -n bash -c 'ip link set dev lo up; meson test --timeout-multiplier=3 -C build --print-errorlogs'
+            meson test --timeout-multiplier=3 -C build --print-errorlogs
             ;;
         CLEANUP)
             info "Cleanup phase"