]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-60-MOUNT-RATELIMIT: disable journal ratelimiting 34797/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 16 Oct 2024 13:34:48 +0000 (22:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 16 Oct 2024 16:53:45 +0000 (01:53 +0900)
Otherwise, journal check in testcase_mount_ratelimit() may fail and we
need to wait 2 minutes.

test/units/TEST-60-MOUNT-RATELIMIT.sh

index 9e76f2f5935749b7b622b46f29df509e712bfd7c..3f27a16bebe2b44121b7b967c335d246e51102ab 100755 (executable)
@@ -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