]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: tests for io.systemd.Machine.OpenRootDirectory
authorIvan Kruglov <mail@ikruglov.com>
Mon, 6 Jan 2025 15:43:28 +0000 (16:43 +0100)
committerIvan Kruglov <mail@ikruglov.com>
Thu, 9 Jan 2025 09:51:18 +0000 (10:51 +0100)
test/units/TEST-13-NSPAWN.machined.sh

index f3d59722ea85d7022e23491e2fddba5414e4fae0..4bd663117f4c8ad5830792adb31610e58195ed51 100755 (executable)
@@ -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.