]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: move TEST-39-EXECRELOAD setup to static files
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Dec 2019 09:02:10 +0000 (10:02 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 10:46:48 +0000 (11:46 +0100)
test/TEST-39-EXECRELOAD/test.sh
test/units/testsuite-39.service [new file with mode: 0644]
test/units/testsuite-39.sh [moved from test/TEST-39-EXECRELOAD/testsuite.sh with 100% similarity, mode: 0755]

index ac1d0c9cf6d173635fab7e19fbb418f084821d94..35cabff5ea621492492fc3ebadf0acb85b8cdc94 100755 (executable)
@@ -14,22 +14,8 @@ test_setup() {
 
         setup_basic_environment
         mask_supporting_services
-        dracut_install mktemp
-
-        # setup the testsuite service
-        cat >$initdir/etc/systemd/system/testsuite.service <<EOF
-[Unit]
-Description=Testsuite service
-
-[Service]
-ExecStart=/bin/bash -x /testsuite.sh
-Type=oneshot
-EOF
-        cp testsuite.sh $initdir/
-
-        setup_testsuite
     )
     setup_nspawn_root
 }
 
-do_test "$@"
+do_test "$@" 39
diff --git a/test/units/testsuite-39.service b/test/units/testsuite-39.service
new file mode 100644 (file)
index 0000000..dbd924c
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=TEST-39-EXECRELOAD
+
+[Service]
+ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
+Type=oneshot
old mode 100644 (file)
new mode 100755 (executable)
similarity index 100%
rename from test/TEST-39-EXECRELOAD/testsuite.sh
rename to test/units/testsuite-39.sh