TEST-58: remove stale artifacts to not fail on repeated invocations

We would remove stuff only if successful, so repeated invocations would
trivially fail.

Also drop "-f", so that if we expect to remove something, it must be there.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-04-23 15:11:38 +02:00
parent 0dd77c159a
commit b0f04bafe0
+3 -2
View File
@@ -5,6 +5,7 @@ set -o pipefail
export SYSTEMD_LOG_LEVEL=debug
export PAGER=cat
rm -f /var/tmp/testsuite-58.img /var/tmp/testsuite-58.2.img /tmp/testsuite-58.dump
mkdir -p /tmp/testsuite-58-defs/
# First part: create a disk image and verify its in order
@@ -74,8 +75,8 @@ systemd-repart --definitions=/tmp/testsuite-58-defs/ \
cmp /var/tmp/testsuite-58.img /var/tmp/testsuite-58.2.img
rm -f /var/tmp/testsuite-58.img /var/tmp/testsuite-58.2.img /tmp/testsuite-58.dump
rm -rf /tmp/testsuite-58-defs/
rm /var/tmp/testsuite-58.img /var/tmp/testsuite-58.2.img /tmp/testsuite-58.dump
rm -r /tmp/testsuite-58-defs/
echo OK >/testok