From: Frantisek Sumsal Date: Mon, 7 Nov 2022 10:55:29 +0000 (+0100) Subject: test: don't ignore non-existent paths in inst_recursive() X-Git-Tag: v253-rc1~583^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb5d7730e1b3b1bddecb80be37e5a4c938183f61;p=thirdparty%2Fsystemd.git test: don't ignore non-existent paths in inst_recursive() The process substitution in the while loop hides errors raised by the find utility, which might (and did), in turn, hide errors in test setup. --- diff --git a/test/test-functions b/test/test-functions index 16d9da637bf..80ce383e647 100644 --- a/test/test-functions +++ b/test/test-functions @@ -2773,6 +2773,10 @@ inst_recursive() { local p item for p in "$@"; do + # Make sure the source exists, as the process substitution below + # suppresses errors + stat "$p" >/dev/null || return 1 + while read -r item; do if [[ -d "$item" ]]; then inst_dir "$item"