From 24a95b430b59008b4f27ccf548f5820f1602a8a8 Mon Sep 17 00:00:00 2001 From: Miro Stauder Date: Tue, 15 Oct 2024 09:15:51 +0200 Subject: [PATCH] correct fails counting --- .github/workflows/ci-3p-postgresql.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-3p-postgresql.yml b/.github/workflows/ci-3p-postgresql.yml index ea00f70d0..0699ea5ec 100644 --- a/.github/workflows/ci-3p-postgresql.yml +++ b/.github/workflows/ci-3p-postgresql.yml @@ -115,10 +115,10 @@ jobs: cd proxysql_3p_testing/test_postgresql BASELINE=$(gh variable -R ${{ github.repository }} list | grep -i BASELINE_3P_POSTGRESQL_${INFRADB//./}_${CONNECTOR//./} | awk '{ print $2 }') - FAILS=$(cat logs/*run-tests.log | grep 'FAIL' | grep ' / ' | awk '{ print $2 }') + FAILS=$(cat logs/*run-tests.log | grep '^not ok ' | wc -l) if [[ -z ${FAILS} ]]; then - echo "Baseline '${BASELINE:-10000}' WARN: no results found" - exit 0 + echo "Baseline '${BASELINE:-10000}' ERROR: no results found" + exit 1 fi if [[ ${FAILS} -gt ${BASELINE:-10000} ]]; then