summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-25.sh
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-21 15:29:43 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-28 11:46:47 +0100
commit68e2dc0f91b8f1b2c985df8023d8db8e4de5237e (patch)
tree8b4d2e1940a22a404e2647647e08b0a93ff4b07a /test/units/testsuite-25.sh
parenttest: move TEST-25-IMPORT setup to static files (diff)
downloadsystemd-68e2dc0f91b8f1b2c985df8023d8db8e4de5237e.tar.xz
systemd-68e2dc0f91b8f1b2c985df8023d8db8e4de5237e.zip
test/TEST-25: remove all images at the end of the test
scratch5 would be left behind, and trying to run the test again on the same image would fail.
Diffstat (limited to '')
-rwxr-xr-xtest/units/testsuite-25.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/units/testsuite-25.sh b/test/units/testsuite-25.sh
index 6dcb780508..2558d5bf4c 100755
--- a/test/units/testsuite-25.sh
+++ b/test/units/testsuite-25.sh
@@ -133,6 +133,11 @@ rm -rf /var/tmp/extract
rm -rf /var/tmp/scratch
+# Test removal
+machinectl remove scratch5
+! test -f /var/lib/machines/scratch5
+! machinectl image-status scratch5
+
echo OK > /testok
exit 0