diff --git a/test/TEST-55-OOMD/test.sh b/test/TEST-55-OOMD/test.sh index c6dc92c050..64e2360b08 100755 --- a/test/TEST-55-OOMD/test.sh +++ b/test/TEST-55-OOMD/test.sh @@ -5,18 +5,19 @@ set -e TEST_DESCRIPTION="systemd-oomd Memory Pressure Test" IMAGE_NAME="oomd" +# Need to set up swap +TEST_NO_NSPAWN=1 + # shellcheck source=test/test-functions . "${TEST_BASE_DIR:?}/test-functions" test_append_files() { - # Create a swap device + # Create a swap file ( - mkswap "${LOOPDEV:?}p2" - image_install swapon swapoff + image_install mkswap swapon swapoff stress - cat >>"${initdir:?}/etc/fstab" <>"${initdir:?}/etc/systemd/system/init.scope.d/test-55-oomd.conf" </run/systemd/oomd.conf.d/99-oomd-test.conf <