From 68e2dc0f91b8f1b2c985df8023d8db8e4de5237e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 21 Mar 2020 15:29:43 +0100 Subject: [PATCH] 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. --- test/units/testsuite-25.sh | 5 +++++ 1 file changed, 5 insertions(+) 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