summaryrefslogtreecommitdiffstats
path: root/test/TEST-55-OOMD
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2024-02-16 13:53:01 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2024-02-17 12:49:44 +0100
commit7e2bf4c5ee871f797c853d8b6474d4d379dad8e2 (patch)
tree1d5abd9cbc655e730ce76267f2a50024c7767873 /test/TEST-55-OOMD
parenttest: don't abbreviate log messages when dumping the test journal (diff)
downloadsystemd-7e2bf4c5ee871f797c853d8b6474d4d379dad8e2.tar.xz
systemd-7e2bf4c5ee871f797c853d8b6474d4d379dad8e2.zip
test: "modernize" TEST-55-OOMD's init
Diffstat (limited to 'test/TEST-55-OOMD')
-rwxr-xr-xtest/TEST-55-OOMD/test.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/TEST-55-OOMD/test.sh b/test/TEST-55-OOMD/test.sh
index 9a9cdecf70..5e3096315c 100755
--- a/test/TEST-55-OOMD/test.sh
+++ b/test/TEST-55-OOMD/test.sh
@@ -12,18 +12,17 @@ TEST_NO_NSPAWN=1
. "${TEST_BASE_DIR:?}/test-functions"
test_append_files() {
- # Create a swap file
- (
- image_install mkswap swapon swapoff stress
- image_install -o btrfs
+ local workspace="${1:?}"
- mkdir -p "${initdir:?}/etc/systemd/system/init.scope.d/"
- cat >>"${initdir:?}/etc/systemd/system/init.scope.d/test-55-oomd.conf" <<EOF
+ image_install mkswap swapon swapoff stress
+ image_install -o btrfs
+
+ mkdir -p "${workspace:?}/etc/systemd/system/init.scope.d/"
+ cat >"${workspace:?}/etc/systemd/system/init.scope.d/test-55-oomd.conf" <<EOF
[Scope]
MemoryHigh=infinity
StartupMemoryHigh=10G
EOF
- )
}
do_test "$@" 55