diff options
author | Luca Boccassi <bluca@debian.org> | 2023-06-17 01:07:32 +0200 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2023-06-24 12:48:51 +0200 |
commit | 937e82cb7d82dbdbd287d82f4708f15d6032eb9f (patch) | |
tree | 05845d4edbdd9d82391d1170c237b2dea91388fb /test/TEST-55-OOMD/test.sh | |
parent | Merge pull request #27330 from YHNdnzj/hibernate-resume-auto (diff) | |
download | systemd-937e82cb7d82dbdbd287d82f4708f15d6032eb9f.tar.xz systemd-937e82cb7d82dbdbd287d82f4708f15d6032eb9f.zip |
TEST-55-OOMD: use 'stress' to create high pressure
The test fails on my machine, running Debian stable, because
testsuite-55-testbloat.service just swaps and never goes over the
limit, so it's not killed. Use 'stress' instead which seems to be
able to overwhelm the swap too.
Diffstat (limited to 'test/TEST-55-OOMD/test.sh')
-rwxr-xr-x | test/TEST-55-OOMD/test.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/TEST-55-OOMD/test.sh b/test/TEST-55-OOMD/test.sh index c6dc92c050..723e80d115 100755 --- a/test/TEST-55-OOMD/test.sh +++ b/test/TEST-55-OOMD/test.sh @@ -14,6 +14,8 @@ test_append_files() { mkswap "${LOOPDEV:?}p2" image_install swapon swapoff + inst_binary stress + cat >>"${initdir:?}/etc/fstab" <<EOF UUID=$(blkid -o value -s UUID "${LOOPDEV}p2") none swap defaults 0 0 EOF |