From: Frantisek Sumsal Date: Wed, 10 May 2023 11:58:13 +0000 (+0200) Subject: test: merge TEST-12-ISSUE-3171 into TEST-07-PID1 X-Git-Tag: v254-rc1~512^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51b6dbf75ad48a816e6a1503fd5d7c4b9ba2b1d6;p=thirdparty%2Fsystemd.git test: merge TEST-12-ISSUE-3171 into TEST-07-PID1 --- diff --git a/test/TEST-12-ISSUE-3171/Makefile b/test/TEST-12-ISSUE-3171/Makefile deleted file mode 120000 index e9f93b1104c..00000000000 --- 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 977e04ee3f3..00000000000 --- 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 00000000000..db17c25f904 --- /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 <