mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test: move TEST-39-EXECRELOAD setup to static files
This commit is contained in:
@@ -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
test/units/testsuite-39.service
Normal file
6
test/units/testsuite-39.service
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=TEST-39-EXECRELOAD
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
||||
Type=oneshot
|
||||
0
test/TEST-39-EXECRELOAD/testsuite.sh → test/units/testsuite-39.sh
Normal file → Executable file
0
test/TEST-39-EXECRELOAD/testsuite.sh → test/units/testsuite-39.sh
Normal file → Executable file
Reference in New Issue
Block a user