test: document when writable /usr overlays may be needed

This commit is contained in:
Richard Maw 2024-03-25 17:43:44 +00:00 committed by Daan De Meyer
parent 0bc1e9592e
commit 796cf1b483
4 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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