mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
test: move TEST-09-ISSUE-2691 setup to static files
This commit is contained in:
parent
c84752398b
commit
e88302002f
@ -16,22 +16,7 @@ test_setup() {
|
|||||||
|
|
||||||
setup_basic_environment
|
setup_basic_environment
|
||||||
mask_supporting_services
|
mask_supporting_services
|
||||||
|
|
||||||
# setup the testsuite service
|
|
||||||
cat >$initdir/etc/systemd/system/testsuite.service <<'EOF'
|
|
||||||
[Unit]
|
|
||||||
Description=Testsuite service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/bin/sh -c '>/testok'
|
|
||||||
RemainAfterExit=yes
|
|
||||||
ExecStop=/bin/sh -c 'kill -SEGV $$$$'
|
|
||||||
TimeoutStopSec=270s
|
|
||||||
EOF
|
|
||||||
|
|
||||||
setup_testsuite
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
do_test "$@"
|
do_test "$@" 09
|
||||||
|
9
test/units/testsuite-09.service
Normal file
9
test/units/testsuite-09.service
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=TEST-09-ISSUE-2691
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=sh -c '>/testok'
|
||||||
|
ExecStop=sh -c 'kill -SEGV $$$$'
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
TimeoutStopSec=270s
|
Loading…
Reference in New Issue
Block a user