From: Zbigniew Jędrzejewski-Szmek Date: Sat, 21 Mar 2020 14:29:43 +0000 (+0100) Subject: test/TEST-25: remove all images at the end of the test X-Git-Tag: v246-rc1~682^2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e2dc0f91b8f1b2c985df8023d8db8e4de5237e;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/units/testsuite-25.sh b/test/units/testsuite-25.sh index 6dcb7805085..2558d5bf4cc 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