Refactor log checks for unittest and build logs

Reorganize log checks to streamline error reporting.
This commit is contained in:
Mayukha Vadari
2026-07-13 12:43:43 -04:00
committed by GitHub
parent 014784a23e
commit 8df89121dc

View File

@@ -341,13 +341,12 @@ jobs:
if ! grep -E "failed" unittest.log | grep -vE "^I[0-9]|^[0-9]+> (ERR:|FTL:)"; then
echo "unittest.log present but no failure lines found."
fi
else
echo "unittest.log not found; embedded tests may not have run."
if [ -f build.log ]; then
if ! grep -E "error:" build.log; then
echo "build.log present but no compile errors found."
fi
elif [ -f build.log ]; then
if ! grep -E "error:" build.log; then
echo "build.log present but no compile errors found."
fi
else
echo "unittest.log/build.log not found; something went wrong."
fi
- name: Debug failure (Linux)
if: ${{ failure() && runner.os == 'Linux' && !inputs.build_only }}