1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

test: move TEST-09-ISSUE-2691 setup to static files

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-12-09 20:27:40 +01:00
parent c84752398b
commit e88302002f
2 changed files with 10 additions and 16 deletions

View File

@ -16,22 +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]
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

View 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