test: move TEST-33-CLEAN-UNIT setup to static files

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-12-10 09:47:14 +01:00
parent c8937bed08
commit ff978cd24a
3 changed files with 8 additions and 15 deletions

View File

@ -15,21 +15,8 @@ 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
) || return 1
)
setup_nspawn_root
}
do_test "$@"
do_test "$@" 33

View File

@ -0,0 +1,6 @@
[Unit]
Description=TEST-33-CLEAN-UNIT
[Service]
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
Type=oneshot