From c35cfe6c6161137f3adc3c56ed14ba3d9fb47a65 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sat, 9 May 2026 04:38:07 +0100 Subject: [PATCH] multi-arch-test-build: grep version output even on non-zero exit Many tools (e.g. unbound-host) print their version as part of a usage blob that is dumped on stderr when an unrecognized flag is given, and exit non-zero. The 2>&1 in the version probe captures that text, but the trailing `|| continue` discarded it before grep could see it, producing spurious "No executables in the package provided version" failures. unbound-host has no flag that returns 0 from the probe loop -- every candidate flag (including -h) errors out -- so the test never matched even though "Version 1.24.2" was sitting right there in the captured output. Switch the suppressor to `|| true` so set -o errexit stays satisfied while letting the grep below decide whether the version was found. Signed-off-by: Daniel Golle --- .github/scripts/test_entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/test_entrypoint.sh b/.github/scripts/test_entrypoint.sh index 81e4d7c..a82acb2 100755 --- a/.github/scripts/test_entrypoint.sh +++ b/.github/scripts/test_entrypoint.sh @@ -84,7 +84,7 @@ check_exec() { local output for check_file in $files_to_check; do for flag in --version -version version -v -V --help -help -?; do - output=$(timeout --kill-after=5s 10s "$check_file" "$flag" 2>&1) || continue + output=$(timeout --kill-after=5s 10s "$check_file" "$flag" 2>&1) || true if echo "$output" | grep -F "$PKG_VERSION"; then status_pass "Version check ($check_file)"