]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: move TEST-09-ISSUE-2691 setup to static files
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 Dec 2019 19:27:40 +0000 (20:27 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 10:46:47 +0000 (11:46 +0100)
test/TEST-09-ISSUE-2691/test.sh
test/units/testsuite-09.service [new file with mode: 0644]

index efe75d140b683dc71512ed08a4023ca9a094e01e..753a4a9868f86c2eef4c0c8ccbc53918e0dbb254 100755 (executable)
@@ -16,22 +16,7 @@ test_setup() {
 
         setup_basic_environment
         mask_supporting_services
-
-        # setup the testsuite service
-        cat >$initdir/etc/systemd/system/testsuite.service <<'EOF'
-[Unit]
-Description=Testsuite service
-
-[Service]
-Type=oneshot
-ExecStart=/bin/sh -c '>/testok'
-RemainAfterExit=yes
-ExecStop=/bin/sh -c 'kill -SEGV $$$$'
-TimeoutStopSec=270s
-EOF
-
-        setup_testsuite
     )
 }
 
-do_test "$@"
+do_test "$@" 09
diff --git a/test/units/testsuite-09.service b/test/units/testsuite-09.service
new file mode 100644 (file)
index 0000000..d551501
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=TEST-09-ISSUE-2691
+
+[Service]
+ExecStart=sh -c '>/testok'
+ExecStop=sh -c 'kill -SEGV $$$$'
+Type=oneshot
+RemainAfterExit=yes
+TimeoutStopSec=270s