]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: move TEST-36-NUMAPOLICY setup to static files
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 10 Dec 2019 08:54:36 +0000 (09:54 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 10:46:48 +0000 (11:46 +0100)
No need to call setup_nspawn_root() if we plan to only run under qemu.

test/TEST-36-NUMAPOLICY/test.sh
test/units/testsuite-36.service [new file with mode: 0644]
test/units/testsuite-36.sh [moved from test/TEST-36-NUMAPOLICY/testsuite.sh with 100% similarity]

index 29addc958b3eb5a337a23761f7c9df9ab5cd1933..1956d5271d2dbf91dfdd4b6acbf2bd549a91b88d 100755 (executable)
@@ -16,22 +16,7 @@ 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 "$@" 36
diff --git a/test/units/testsuite-36.service b/test/units/testsuite-36.service
new file mode 100644 (file)
index 0000000..f2dcbea
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=TEST-36-NUMAPOLICY
+
+[Service]
+ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
+Type=oneshot