mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
23f8e01912
Let's unify handling of the boolean values throughout the test-functions code, since we use 0/1, true/false, and yes/no almost randomly in many places, so picking the right values during CI configuration can be a real pain.
22 lines
453 B
Bash
Executable File
22 lines
453 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
TEST_DESCRIPTION="Tmpfiles related tests"
|
|
TEST_NO_QEMU=1
|
|
|
|
# shellcheck source=test/test-functions
|
|
. "${TEST_BASE_DIR:?}/test-functions"
|
|
|
|
test_append_files() {
|
|
if get_bool "${IS_BUILT_WITH_ASAN:=}"; then
|
|
if [[ -z "${initdir:=}" ]]; then
|
|
echo >&2 "\$initdir is not defined, can't continue"
|
|
exit 1
|
|
fi
|
|
|
|
sed -i "s/systemd//g" "$initdir/etc/nsswitch.conf"
|
|
fi
|
|
}
|
|
|
|
do_test "$@"
|