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

index 7bc9298dc12c6720853889356c574549869a9d51..b2565e0c96ef80ead986baeffbf52054ac0ce98c 100755 (executable)
@@ -15,20 +15,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]
-ExecStart=/bin/bash -x /testsuite.sh
-Type=oneshot
-EOF
-        cp testsuite.sh $initdir/
-
-        setup_testsuite
     )
 }
 
-do_test "$@"
+do_test "$@" 31
diff --git a/test/units/testsuite-31.service b/test/units/testsuite-31.service
new file mode 100644 (file)
index 0000000..26ec2cb
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=TEST-31-DEVICE-ENUMERATION
+
+[Service]
+ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
+Type=oneshot