From 4fcfb4f333470be69b0929a787509e64ebe96b33 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 10 May 2023 13:58:13 +0200 Subject: [PATCH] test: merge TEST-12-ISSUE-3171 into TEST-07-PID1 (cherry picked from commit 51b6dbf75ad48a816e6a1503fd5d7c4b9ba2b1d6) Related: #2213521 --- test/TEST-12-ISSUE-3171/Makefile | 1 - test/TEST-12-ISSUE-3171/test.sh | 11 ------ test/units/testsuite-07.issue-3171.sh | 50 +++++++++++++++++++++++++++ test/units/testsuite-12.service | 9 ----- test/units/testsuite-12.sh | 49 -------------------------- 5 files changed, 50 insertions(+), 70 deletions(-) delete mode 120000 test/TEST-12-ISSUE-3171/Makefile delete mode 100755 test/TEST-12-ISSUE-3171/test.sh create mode 100755 test/units/testsuite-07.issue-3171.sh delete mode 100644 test/units/testsuite-12.service delete mode 100755 test/units/testsuite-12.sh diff --git a/test/TEST-12-ISSUE-3171/Makefile b/test/TEST-12-ISSUE-3171/Makefile deleted file mode 120000 index e9f93b1104..0000000000 --- a/test/TEST-12-ISSUE-3171/Makefile +++ /dev/null @@ -1 +0,0 @@ -../TEST-01-BASIC/Makefile \ No newline at end of file diff --git a/test/TEST-12-ISSUE-3171/test.sh b/test/TEST-12-ISSUE-3171/test.sh deleted file mode 100755 index 977e04ee3f..0000000000 --- a/test/TEST-12-ISSUE-3171/test.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash -# SPDX-License-Identifier: LGPL-2.1-or-later -set -e - -TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/3171" -TEST_NO_QEMU=1 - -# shellcheck source=test/test-functions -. "${TEST_BASE_DIR:?}/test-functions" - -do_test "$@" diff --git a/test/units/testsuite-07.issue-3171.sh b/test/units/testsuite-07.issue-3171.sh new file mode 100755 index 0000000000..db17c25f90 --- /dev/null +++ b/test/units/testsuite-07.issue-3171.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: LGPL-2.1-or-later +set -eux +set -o pipefail + +# SocketGroup lost on daemon-reload with unit moving away temporarily +# Issue: https://github.com/systemd/systemd/issues/3171 + +echo "g adm - - -" | systemd-sysusers - + +U=/run/systemd/system/issue-3171.socket +cat >$U </run/systemd/system/issue-3171@.service <$U </run/systemd/system/test12@.service <