mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
test: "modernize" TEST-55-OOMD's init
This commit is contained in:
parent
bce0fa7da1
commit
7e2bf4c5ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user