]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: remove /failed and /testok before running test script
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Jul 2022 22:00:02 +0000 (07:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Jul 2022 22:00:02 +0000 (07:00 +0900)
test/units/testsuite-60.service
test/units/testsuite-60.sh

index 18024d12d2151a0468cf4afb35fc488cc6310574..1a929e4fd9d405210d3b26698cdf13abc2ef5e75 100644 (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
index 3a097816cad7710126f293e456c5f8b6bc10ce50..31e1f46af9c37f4f74649cd34b92b259a625ac33 100755 (executable)
@@ -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