From 5130be4ccc0870650ef591356ff321b0c1cede9e Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 22 Nov 2022 21:00:45 +0100 Subject: [PATCH] tools: silence version comparison in get_build_info() The get_build_info() function uses nvrGreaterOrEqual() to determine how to parse the output from composer-cli. The function prints the result of the comparison but is often used in a loop when waiting for a compose to finish, which makes CI logs very annoying. Silence the version comparison output when called form get_build_info(). --- test/cases/shared_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/shared_lib.sh b/test/cases/shared_lib.sh index 99c76a9dd..b38f55863 100755 --- a/test/cases/shared_lib.sh +++ b/test/cases/shared_lib.sh @@ -26,7 +26,7 @@ function get_build_info() { local fname="$2" if rpm -q --quiet weldr-client; then key=".body${key}" - if nvrGreaterOrEqual "weldr-client" "35.6"; then + if nvrGreaterOrEqual "weldr-client" "35.6" 2> /dev/null; then key=".[0]${key}" fi fi