From: Zbigniew Jędrzejewski-Szmek Date: Tue, 10 Dec 2019 10:49:39 +0000 (+0100) Subject: test: move TEST-42-EXECSTOPPOST setup to static files X-Git-Tag: v246-rc1~682^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdfd515ad14913588be18b2bff8290842cec95d9;p=thirdparty%2Fsystemd.git test: move TEST-42-EXECSTOPPOST setup to static files --- diff --git a/test/TEST-42-EXECSTOPPOST/test.sh b/test/TEST-42-EXECSTOPPOST/test.sh index 0c393597c79..e143fb6288e 100755 --- a/test/TEST-42-EXECSTOPPOST/test.sh +++ b/test/TEST-42-EXECSTOPPOST/test.sh @@ -12,38 +12,9 @@ test_setup() { eval $(udevadm info --export --query=env --name=${LOOPDEV}p2) setup_basic_environment - mask_supporting_services - - # setup policy for Type=dbus test - mkdir -p $initdir/etc/dbus-1/system.d - cat > $initdir/etc/dbus-1/system.d/systemd.test.ExecStopPost.conf < - - - - - - -EOF - - # setup the testsuite service - cat >$initdir/etc/systemd/system/testsuite.service < $initdir/etc/dbus-1/system.d/systemd.test.ExecStopPost.conf < + + + + + + +EOF } install_user_dbus() { diff --git a/test/units/testsuite-42.service b/test/units/testsuite-42.service new file mode 100644 index 00000000000..d5d102fd916 --- /dev/null +++ b/test/units/testsuite-42.service @@ -0,0 +1,8 @@ +[Unit] +Description=TEST-42-EXECSTOPPOST +Before=getty-pre.target +Wants=getty-pre.target + +[Service] +ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh +Type=oneshot diff --git a/test/TEST-42-EXECSTOPPOST/testsuite.sh b/test/units/testsuite-42.sh similarity index 100% rename from test/TEST-42-EXECSTOPPOST/testsuite.sh rename to test/units/testsuite-42.sh