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/2467" 6 7# shellcheck source=test/test-functions 8. "${TEST_BASE_DIR:?}/test-functions" 9 10test_append_files() { 11 ( 12 # Collecting coverage slows this particular test quite a bit, causing 13 # it to fail with the default settings (20 triggers per 2 secs) 14 # to trip over the default limit. Let's help it a bit in such case. 15 if get_bool "$IS_BUILT_WITH_COVERAGE"; then 16 mkdir -p "${initdir:?}/etc/systemd/system/test10.socket.d" 17 printf "[Socket]\nTriggerLimitIntervalSec=10\n" >"${initdir:?}/etc/systemd/system/test10.socket.d/coverage-override.conf" 18 fi 19 ) 20} 21 22do_test "$@" 23