test: move TEST-39-EXECRELOAD setup to static files

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-03-28 11:46:48 +01:00
parent 4db7d044b8
commit 7124ae207a
3 changed files with 7 additions and 15 deletions
+1 -15
View File
@@ -14,22 +14,8 @@ 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 "$@" 39
+6
View File
@@ -0,0 +1,6 @@
[Unit]
Description=TEST-39-EXECRELOAD
[Service]
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
Type=oneshot
View File