From e88302002fcea6cd8adc0fcac0d08e2daf8c6452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 9 Dec 2019 20:27:40 +0100 Subject: [PATCH] test: move TEST-09-ISSUE-2691 setup to static files --- test/TEST-09-ISSUE-2691/test.sh | 17 +---------------- test/units/testsuite-09.service | 9 +++++++++ 2 files changed, 10 insertions(+), 16 deletions(-) create mode 100644 test/units/testsuite-09.service diff --git a/test/TEST-09-ISSUE-2691/test.sh b/test/TEST-09-ISSUE-2691/test.sh index efe75d140b..753a4a9868 100755 --- a/test/TEST-09-ISSUE-2691/test.sh +++ b/test/TEST-09-ISSUE-2691/test.sh @@ -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 diff --git a/test/units/testsuite-09.service b/test/units/testsuite-09.service new file mode 100644 index 0000000000..d551501335 --- /dev/null +++ b/test/units/testsuite-09.service @@ -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