test: remove /failed and /testok before running test script

This commit is contained in:
Yu Watanabe
2022-07-08 07:00:02 +09:00
parent 0d6217efc1
commit d64c7623ab
2 changed files with 5 additions and 3 deletions

View File

@@ -4,4 +4,5 @@ Description=TEST-60-MOUNT-RATELIMIT
[Service]
Type=oneshot
ExecStartPre=rm -f /failed /testok
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh

View File

@@ -53,6 +53,8 @@ EOF
}
}
: >/failed
systemd-analyze log-level debug
systemd-analyze log-target journal
@@ -142,6 +144,5 @@ test_issue_20329
systemd-analyze log-level info
echo OK >/testok
exit 0
touch /testok
rm /failed