correct fails counting

fix/3p-ci-error-handling
Miro Stauder 2 years ago committed by GitHub
parent ed7265389e
commit 24a95b430b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save