From 46ab34058fc75211e72e8bf2ebba598281498488 Mon Sep 17 00:00:00 2001 From: Ihor Aleksandrychiev Date: Tue, 23 Jun 2026 14:29:39 +0300 Subject: [PATCH] Suppress expected stderr noise in static-check image checksum probe Ticket: ENT-14201 Signed-off-by: Ihor Aleksandrychiev --- tests/static-check/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/static-check/run.sh b/tests/static-check/run.sh index e91ae445b0..731bb0aea2 100755 --- a/tests/static-check/run.sh +++ b/tests/static-check/run.sh @@ -63,7 +63,7 @@ if buildah inspect "cfengine-static-checker-f$STATIC_CHECKS_FEDORA_VERSION" >/de # Recreate the image if the checksum of this file has changed or if the # checksum file is missing from the container - if [[ $(buildah run "$c" ls "$SUM_FILE") == "$SUM_FILE" ]]; then + if [[ $(buildah run "$c" ls "$SUM_FILE" 2>/dev/null) == "$SUM_FILE" ]]; then SUM_A=$(sha256sum "$0") SUM_B=$(buildah run "$c" cat "$SUM_FILE") if [[ "$SUM_A" != "$SUM_B" ]]; then