From 776b6e9c528706c36e6d37acfe952fd1d28146c1 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 22 Dec 2024 12:52:05 +0100 Subject: [PATCH] Try to report also SKIP => PASS --- .github/workflows/GnuTests.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/GnuTests.yml b/.github/workflows/GnuTests.yml index 04b487f5c27..ef47ff12421 100644 --- a/.github/workflows/GnuTests.yml +++ b/.github/workflows/GnuTests.yml @@ -248,12 +248,17 @@ jobs: REF_ERROR=$(sed -n "s/^ERROR: \([[:print:]]\+\).*/\1/p" "${ref_log_file}"| sort) CURRENT_RUN_ERROR=$(sed -n "s/^ERROR: \([[:print:]]\+\).*/\1/p" "${new_log_file}" | sort) REF_FAILING=$(sed -n "s/^FAIL: \([[:print:]]\+\).*/\1/p" "${ref_log_file}"| sort) + REF_SKIP_PASS=$(sed -n "s/^SKIP: \([[:print:]]\+\).*/\1/p" "${ref_log_file}"| sort) CURRENT_RUN_FAILING=$(sed -n "s/^FAIL: \([[:print:]]\+\).*/\1/p" "${new_log_file}" | sort) - echo "Detailled information:" + CURRENT_PASS=$(grep -E "^\s*[[:print:]]+: PASS" "${new_log_file}" | sed 's/: PASS//') + + echo "Detailed information:" echo "REF_ERROR = ${REF_ERROR}" echo "CURRENT_RUN_ERROR = ${CURRENT_RUN_ERROR}" echo "REF_FAILING = ${REF_FAILING}" echo "CURRENT_RUN_FAILING = ${CURRENT_RUN_FAILING}" + echo "REF_SKIP_PASS = ${REF_SKIP_PASS}" + echo "CURRENT_PASS = ${CURRENT_PASS}" # Compare failing and error tests for LINE in ${CURRENT_RUN_FAILING} @@ -275,6 +280,16 @@ jobs: fi done + for LINE in ${REF_SKIP_PASS} + do + if echo "${CURRENT_PASS}" | grep -Fxq "${LINE}" + then + MSG="Congrats! The test '${LINE}' status changed from SKIP to PASS." + echo "::warning ::$MSG" + echo $MSG >> ${COMMENT_LOG} + fi + done + for LINE in ${REF_FAILING} do if ! grep -Fxq ${LINE}<<<"${CURRENT_RUN_FAILING}"