]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/TEST-25: remove all images at the end of the test
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 21 Mar 2020 14:29:43 +0000 (15:29 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 10:46:47 +0000 (11:46 +0100)
scratch5 would be left behind, and trying to run the test again on the same
image would fail.

test/units/testsuite-25.sh

index 6dcb78050858fc0a0d6d5251edad023e735c3888..2558d5bf4cc317e6c6d7f6fe8355a56c978d68eb 100755 (executable)
@@ -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