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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-21 15:29:43 +01:00
parent 6e796683df
commit 68e2dc0f91
1 changed files with 5 additions and 0 deletions

View File

@ -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