mirror of
https://github.com/systemd/systemd
synced 2024-07-09 04:26:06 +00:00
TEST-07-PID1: Lower TriggerLimitIntervalSec= unconditionally
It shouldn't hurt to do this when KVM is enabled or we're not collecting coverage so let's just always lower the trigger limit interval.
This commit is contained in:
parent
7590e1d037
commit
733d0594f0
|
@ -11,16 +11,6 @@ NSPAWN_ARGUMENTS="--capability=CAP_NET_ADMIN"
|
|||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
test_append_files() {
|
||||
local workspace="${1:?}"
|
||||
|
||||
# We might not be fast enough to hit the limit (20 triggers per 2 secs)
|
||||
# in certain environments, i.e. when running without KVM or when collecting
|
||||
# coverage. Let's help it a bit in such case.
|
||||
if ! get_bool "$QEMU_KVM" || get_bool "$IS_BUILT_WITH_COVERAGE"; then
|
||||
mkdir -p "$workspace/etc/systemd/system/issue2467.socket.d"
|
||||
printf "[Socket]\nTriggerLimitIntervalSec=10\n" >"$workspace/etc/systemd/system/issue2467.socket.d/TriggerLimitInterval.conf"
|
||||
fi
|
||||
|
||||
image_install logger socat
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
[Socket]
|
||||
ListenStream=/run/test.ctl
|
||||
# We might not be fast enough to hit the default limit (20 triggers per 2 secs)
|
||||
# in certain environments, i.e. when running without KVM or when collecting
|
||||
# coverage. Let's help it a bit in such cases by lowering the limit to 10 seconds.
|
||||
TriggerLimitIntervalSec=10
|
||||
|
|
Loading…
Reference in New Issue
Block a user