test: move TEST-01-BASIC setup to static files

After this commit, only tests that were converted will work, because the
interface to test_run() changed.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-03-28 11:46:47 +01:00
parent 5f28f3ddaf
commit fe85f2bb9c
4 changed files with 47 additions and 39 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[Unit]
Description=End the test
After=testsuite.service
After=testsuite.target
OnFailure=poweroff.target
OnFailureJobMode=replace-irreversibly
+7
View File
@@ -0,0 +1,7 @@
[Unit]
Description=TEST-01-BASIC
After=multi-user.target
[Service]
ExecStart=sh -e -x -c 'systemctl --state=failed --no-legend --no-pager >/failed ; systemctl daemon-reload ; echo OK >/testok'
Type=oneshot