summaryrefslogtreecommitdiffstats
path: root/test/units
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2024-03-25 18:43:44 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-24 11:01:45 +0200
commit796cf1b4838467b1c2da80aa1101ec236390914d (patch)
treecca64b0647a1d6e32a8af276577a2bbc7b6d7c8a /test/units
parentmkosi: Update to latest (diff)
downloadsystemd-796cf1b4838467b1c2da80aa1101ec236390914d.tar.xz
systemd-796cf1b4838467b1c2da80aa1101ec236390914d.zip
test: document when writable /usr overlays may be needed
Diffstat (limited to 'test/units')
-rwxr-xr-xtest/units/testsuite-15.sh1
-rwxr-xr-xtest/units/testsuite-26.sh1
-rwxr-xr-xtest/units/testsuite-60.sh1
-rwxr-xr-xtest/units/testsuite-73.sh1
4 files changed, 4 insertions, 0 deletions
diff --git a/test/units/testsuite-15.sh b/test/units/testsuite-15.sh
index 0266f6266f..204fa99219 100755
--- a/test/units/testsuite-15.sh
+++ b/test/units/testsuite-15.sh
@@ -8,6 +8,7 @@ set -o pipefail
# shellcheck source=test/units/util.sh
. "$(dirname "$0")"/util.sh
+# Needed to write units to /usr/lib/systemd/system to test /etc and /run overrides.
maybe_mount_usr_overlay
trap 'maybe_umount_usr_overlay' EXIT
diff --git a/test/units/testsuite-26.sh b/test/units/testsuite-26.sh
index 2dd62a4f67..6734aee654 100755
--- a/test/units/testsuite-26.sh
+++ b/test/units/testsuite-26.sh
@@ -18,6 +18,7 @@ at_exit() {
return 0
}
+# Needed for /usr/lib/systemd/system/$UNIT_NAME to test overrides in /etc and /run
maybe_mount_usr_overlay
trap at_exit EXIT
diff --git a/test/units/testsuite-60.sh b/test/units/testsuite-60.sh
index 3d0723e7dc..c777de8526 100755
--- a/test/units/testsuite-60.sh
+++ b/test/units/testsuite-60.sh
@@ -6,6 +6,7 @@ set -o pipefail
# shellcheck source=test/units/util.sh
. "$(dirname "$0")"/util.sh
+# Needed to create mount.mytmpfs helper
maybe_mount_usr_overlay
trap 'maybe_umount_usr_overlay' EXIT
diff --git a/test/units/testsuite-73.sh b/test/units/testsuite-73.sh
index 3e5b78879a..59f84f20ab 100755
--- a/test/units/testsuite-73.sh
+++ b/test/units/testsuite-73.sh
@@ -9,6 +9,7 @@ set -o pipefail
# shellcheck source=test/units/util.sh
. "$(dirname "$0")"/util.sh
+# Needed to generate test locales in /usr/lib
maybe_mount_usr_overlay
trap 'maybe_umount_usr_overlay' EXIT