From: Frantisek Sumsal Date: Tue, 14 Sep 2021 12:36:04 +0000 (+0200) Subject: test: make helper_check_device_symlinks() less verbose X-Git-Tag: v250-rc1~662^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0560b93ea1cece4bffd61243321a3a0a53a34ad;p=thirdparty%2Fsystemd.git test: make helper_check_device_symlinks() less verbose --- diff --git a/test/units/testsuite-64.sh b/test/units/testsuite-64.sh index b721ffd07fa..5f68a5f1ede 100755 --- a/test/units/testsuite-64.sh +++ b/test/units/testsuite-64.sh @@ -7,12 +7,17 @@ set -o pipefail # Check if all symlinks under /dev/disk/ are valid # shellcheck disable=SC2120 helper_check_device_symlinks() { + # Disable verbose logging only for this function (and reset the signal handler + # when leaving the function) + set +x; trap "trap - RETURN; set -x" RETURN + local dev link paths target [[ $# -gt 0 ]] && paths=("$@") || paths=("/dev/disk") while read -r link; do target="$(readlink -f "$link")" + echo "$link -> $target" # Both checks should do virtually the same thing, but check both to be # on the safe side if [[ ! -e "$link" || ! -e "$target" ]]; then