1#!/usr/bin/env bash 2# SPDX-License-Identifier: LGPL-2.1-or-later 3set -e 4 5TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/17433" 6 7# shellcheck source=test/test-functions 8. "${TEST_BASE_DIR:?}/test-functions" 9 10test_append_files() { 11 ( 12 # Tweak the trigger limit interval in case we are collecting coverage 13 # or running without KVM - in both cases we might be slow enough that 14 # we could miss the default rate-limit window and cause the test to fail 15 # unexpectedly. 16 if get_bool "$IS_BUILT_WITH_COVERAGE" || ! get_bool "$QEMU_KVM"; then 17 mkdir -p "${initdir:?}/etc/systemd/system/test63.path.d" 18 printf "[Path]\nTriggerLimitIntervalSec=10\n" >"${initdir:?}/etc/systemd/system/test63.path.d/triggerlimitinterval-override.conf" 19 fi 20 ) 21} 22 23do_test "$@" 24