]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-13-NSPAWN: enable debugging logs by nspawn run by systemd-run
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Nov 2024 16:14:24 +0000 (01:14 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 1 Dec 2024 14:40:19 +0000 (15:40 +0100)
Otherwise, it is hard to debug issue #35209.

test/units/TEST-13-NSPAWN.nspawn.sh

index 664962f9a0e479605666ac60d77e39263e5b2c07..3120d98bf4d0f51a1a66e840322c0b6e4493bd5f 100755 (executable)
@@ -1238,7 +1238,7 @@ test_tun() {
     # Without DeviceAllow= for /dev/net/tun, see issue #35116.
     assert_rc \
         "$expect" \
-        systemd-run --pty --wait -p DevicePolicy=closed -p DeviceAllow="char-pts rw" \
+        systemd-run --wait -p Environment=SYSTEMD_LOG_LEVEL=debug -p DevicePolicy=closed -p DeviceAllow="char-pts rw" \
         systemd-nspawn "$@" bash -xec "$command"
 
     [[ "$(stat /dev/net/tun --format=%u)" == 0 ]]