From cf9a70a232515c72418be32aa9b88ffaa40b5fd6 Mon Sep 17 00:00:00 2001 From: bpvstaty366 Date: Thu, 29 Feb 2024 17:33:44 +0200 Subject: [PATCH] add logs for testing --- .github/workflows/utils.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/utils.sh b/.github/workflows/utils.sh index 2bdf918e4..582bb3ed8 100755 --- a/.github/workflows/utils.sh +++ b/.github/workflows/utils.sh @@ -143,10 +143,10 @@ function getResults(){ failures=$(cat firebolt-apis/report/report.json | jq -r '.stats.failures') echo "If failures more than 0, fail the job" echo "Failures=$failures" - if [ "$failures" -gt 0 ]; then - exit 1; - else + if [ "$failures" -eq 0 ]; then echo "No failures detected." + else + exit 1 fi }