summaryrefslogtreecommitdiffstats
path: root/test/units/TEST-60-MOUNT-RATELIMIT.sh
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-10-16 15:34:48 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-10-16 18:53:45 +0200
commit73970cdcd1cebe49a2858ce016c0cd4ce6037b2e (patch)
tree7246b1150997874921c01c72d434cc2d0784b861 /test/units/TEST-60-MOUNT-RATELIMIT.sh
parentTEST-60-MOUNT-RATEMINIT: split into small test cases (diff)
downloadsystemd-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-xtest/units/TEST-60-MOUNT-RATELIMIT.sh7
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