From: Frantisek Sumsal Date: Wed, 10 May 2023 11:07:26 +0000 (+0200) Subject: test: merge TEST-08-ISSUE-2730 into TEST-07-PID1 X-Git-Tag: v254-rc1~512^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd62ba42a40e5d87a83a98bc421419bd2778d4ec;p=thirdparty%2Fsystemd.git test: merge TEST-08-ISSUE-2730 into TEST-07-PID1 --- diff --git a/test/TEST-07-PID1/test.sh b/test/TEST-07-PID1/test.sh index 2b9dd418b82..c2418403270 100755 --- a/test/TEST-07-PID1/test.sh +++ b/test/TEST-07-PID1/test.sh @@ -7,4 +7,23 @@ TEST_DESCRIPTION="Tests for core PID1 functionality" # shellcheck source=test/test-functions . "${TEST_BASE_DIR:?}/test-functions" +test_append_files() { + local workspace="${1:?}" + + # Issue: https://github.com/systemd/systemd/issues/2730 + mkdir -p "$workspace/etc/systemd/system/" + cat >"$workspace/etc/systemd/system/issue2730.mount" </failed +# Issue: https://github.com/systemd/systemd/issues/2730 +# See TEST-07-PID1/test.sh for the first "half" of the test +mountpoint /issue2730 + for script in "${0%.sh}".*.sh; do echo "Running $script" "./$script" diff --git a/test/units/testsuite-08.service b/test/units/testsuite-08.service deleted file mode 100644 index d6937663e2f..00000000000 --- a/test/units/testsuite-08.service +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later -[Unit] -Description=TEST-08-ISSUE-2730 - -[Service] -ExecStartPre=rm -f /failed /testok -ExecStart=sh -x -c 'mount -o remount,rw /dev/sda1 && echo OK >/testok; systemctl poweroff' -Type=oneshot