From 3ddd3adfcda17d8f7761d01bb796ceefb96a55f5 Mon Sep 17 00:00:00 2001 From: Ivan Kruglov Date: Mon, 6 Jan 2025 16:43:28 +0100 Subject: [PATCH] machine: tests for io.systemd.Machine.OpenRootDirectory --- test/units/TEST-13-NSPAWN.machined.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/units/TEST-13-NSPAWN.machined.sh b/test/units/TEST-13-NSPAWN.machined.sh index f3d59722ea8..4bd663117f4 100755 --- a/test/units/TEST-13-NSPAWN.machined.sh +++ b/test/units/TEST-13-NSPAWN.machined.sh @@ -422,6 +422,10 @@ varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.CopyF diff /var/lib/machines/long-running/foo /foo rm -f /var/lib/machines/long-running/root/foo /foo +# test io.systemd.Machine.OpenRootDirectory +varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.OpenRootDirectory '{"name": ".host"}' +varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.OpenRootDirectory '{"name": "long-running"}' + # Terminating machine, otherwise acquiring image metadata by io.systemd.MachineImage.List may fail in the below. machinectl terminate long-running # wait for the container being stopped, otherwise acquiring image metadata by io.systemd.MachineImage.List may fail in the below. -- 2.47.3