From: Luca Boccassi Date: Mon, 25 May 2026 11:57:51 +0000 (+0100) Subject: test: ignore both kill and wait errors in TEST-87-AUX-UTILS-VM.vmspawn X-Git-Tag: v261-rc2~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F42291%2Fhead;p=thirdparty%2Fsystemd.git test: ignore both kill and wait errors in TEST-87-AUX-UTILS-VM.vmspawn If the process already exited it's not just wait, but also kill that will fail, so guard them both Follow-up for d32bc9cd07e61e852c624f228dda8669f540bf6d --- diff --git a/test/units/TEST-87-AUX-UTILS-VM.vmspawn.sh b/test/units/TEST-87-AUX-UTILS-VM.vmspawn.sh index faf767df4e4..0a33cbd60c5 100755 --- a/test/units/TEST-87-AUX-UTILS-VM.vmspawn.sh +++ b/test/units/TEST-87-AUX-UTILS-VM.vmspawn.sh @@ -156,7 +156,7 @@ varlinkctl call "$VARLINK_ADDR" io.systemd.MachineInstance.Resume '{}' sleep 0.5 # Kill the subscriber and check output -kill "$SUBSCRIBE_ALL_PID" 2>/dev/null; wait "$SUBSCRIBE_ALL_PID" 2>/dev/null || true +{ kill "$SUBSCRIBE_ALL_PID" 2>/dev/null && wait "$SUBSCRIBE_ALL_PID" 2>/dev/null; } || : cat "$WORKDIR/events-all.json" # Verify initial READY event @@ -180,7 +180,7 @@ sleep 0.2 varlinkctl call "$VARLINK_ADDR" io.systemd.MachineInstance.Resume '{}' sleep 0.5 -kill "$SUBSCRIBE_FILTER_PID" 2>/dev/null; wait "$SUBSCRIBE_FILTER_PID" 2>/dev/null || true +{ kill "$SUBSCRIBE_FILTER_PID" 2>/dev/null && wait "$SUBSCRIBE_FILTER_PID" 2>/dev/null; } || : cat "$WORKDIR/events-filtered.json" # Should have STOP but not RESUME