From: Frantisek Sumsal Date: Fri, 16 Feb 2024 12:53:01 +0000 (+0100) Subject: test: "modernize" TEST-55-OOMD's init X-Git-Tag: v256-rc1~826^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F31318%2Fhead;p=thirdparty%2Fsystemd.git test: "modernize" TEST-55-OOMD's init --- diff --git a/test/TEST-55-OOMD/test.sh b/test/TEST-55-OOMD/test.sh index 9a9cdecf70e..5e3096315ca 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" <"${workspace:?}/etc/systemd/system/init.scope.d/test-55-oomd.conf" <