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"