diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-16 15:34:48 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-16 18:53:45 +0200 |
commit | 73970cdcd1cebe49a2858ce016c0cd4ce6037b2e (patch) | |
tree | 7246b1150997874921c01c72d434cc2d0784b861 /test/units/TEST-60-MOUNT-RATELIMIT.sh | |
parent | TEST-60-MOUNT-RATEMINIT: split into small test cases (diff) | |
download | systemd-73970cdcd1cebe49a2858ce016c0cd4ce6037b2e.tar.xz systemd-73970cdcd1cebe49a2858ce016c0cd4ce6037b2e.zip |
TEST-60-MOUNT-RATELIMIT: disable journal ratelimiting
Otherwise, journal check in testcase_mount_ratelimit() may fail and we
need to wait 2 minutes.
Diffstat (limited to 'test/units/TEST-60-MOUNT-RATELIMIT.sh')
-rwxr-xr-x | test/units/TEST-60-MOUNT-RATELIMIT.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/units/TEST-60-MOUNT-RATELIMIT.sh b/test/units/TEST-60-MOUNT-RATELIMIT.sh index 9e76f2f593..3f27a16beb 100755 --- a/test/units/TEST-60-MOUNT-RATELIMIT.sh +++ b/test/units/TEST-60-MOUNT-RATELIMIT.sh @@ -321,6 +321,13 @@ testcase_mount_ratelimit() { systemd-analyze log-level debug systemd-analyze log-target journal +mkdir -p /run/systemd/journald.conf.d +cat >/run/systemd/journald.conf.d/99-ratelimit.conf <<EOF +[Journal] +RateLimitBurst=0 +EOF +systemctl restart systemd-journald.service + run_testcases touch /testok |