3 TEST_DESCRIPTION
="test that ExecStopPost= is always run"
5 .
$TEST_BASE_DIR/test-functions
8 create_empty_image_rootdir
12 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
14 setup_basic_environment
16 mask_supporting_services
18 # setup policy for Type=dbus test
19 mkdir
-p $initdir/etc
/dbus-
1/system.d
20 cat > $initdir/etc
/dbus-
1/system.d
/systemd.
test.ExecStopPost.conf
<<EOF
22 <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
23 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
26 <allow own="systemd.test.ExecStopPost"/>
31 # setup the testsuite service
32 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
34 Description=Testsuite service
35 Before=getty-pre.target
36 Wants=getty-pre.target
39 ExecStart=/testsuite.sh
42 cp testsuite.sh
$initdir/