TEST-13-NSPAWN: enable debugging logs by nspawn run by systemd-run

Otherwise, it is hard to debug issue #35209.
This commit is contained in:
Yu Watanabe
2024-12-01 15:40:19 +01:00
committed by Daan De Meyer
parent 1072618023
commit 472e3cce6e
+1 -1
View File
@@ -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 ]]