diff --git a/.github/workflows/reusable-build-test-config.yml b/.github/workflows/reusable-build-test-config.yml index a4bb5932ca..2f8ddd1533 100644 --- a/.github/workflows/reusable-build-test-config.yml +++ b/.github/workflows/reusable-build-test-config.yml @@ -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 }}