mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test: remove /failed and /testok before running test script
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user