mirror of
https://github.com/systemd/systemd.git
synced 2025-02-23 13:57:33 +03:00
test: move TEST-19-DELEGATE setup to static files
This commit is contained in:
parent
dce2b8ce48
commit
e67a2644a8
@ -16,20 +16,7 @@ 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
|
||||
)
|
||||
}
|
||||
|
||||
do_test "$@"
|
||||
do_test "$@" 19
|
||||
|
6
test/units/testsuite-19.service
Normal file
6
test/units/testsuite-19.service
Normal file
@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=TEST-19-DELEGATE
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
||||
Type=oneshot
|
Loading…
x
Reference in New Issue
Block a user