From: Ivan Kruglov Date: Wed, 18 Dec 2024 17:50:35 +0000 (+0100) Subject: machine: make TEST-13-NSPAWN wqlong-running code more verbose X-Git-Tag: v258-rc1~1811 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cbf00a30c0a2fae5c02be50e0e47d397a3846e8;p=thirdparty%2Fsystemd.git machine: make TEST-13-NSPAWN wqlong-running code more verbose Need this to debug https://github.com/systemd/systemd/issues/35115 --- diff --git a/test/units/TEST-13-NSPAWN.machined.sh b/test/units/TEST-13-NSPAWN.machined.sh index 85eb89b14d8..a0a10ef3074 100755 --- a/test/units/TEST-13-NSPAWN.machined.sh +++ b/test/units/TEST-13-NSPAWN.machined.sh @@ -42,6 +42,8 @@ create_dummy_container /var/lib/machines/long-running cat >/var/lib/machines/long-running/sbin/init <<\EOF #!/usr/bin/bash +set -x + PID=0 trap 'touch /terminate; kill 0' RTMIN+3 @@ -310,6 +312,10 @@ varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.Unreg # test io.systemd.Machine.List with addresses, OSRelease, and UIDShift fields create_dummy_container "/var/lib/machines/container-without-os-release" cat >>/var/lib/machines/container-without-os-release/sbin/init <<\EOF +#!/usr/bin/bash + +set -x + ip link add hoge type dummy ip link set hoge up ip address add 192.0.2.1/24 dev hoge