From 2fd759ef820d86ce42f8c57c6aef8efc5574ca4a Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Thu, 20 Nov 2025 18:38:18 -0500 Subject: [PATCH] claude: Make Windows smoke tests fail-fast like Linux When a test fails on Windows, exit immediately instead of continuing through remaining tests in the bucket. This matches Linux behavior (bash -e flag) and keeps test failures at the end of the log where they're easy to find, instead of buried under 1000+ lines of subsequent test output. --- .github/workflows/test-smokes.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-smokes.yml b/.github/workflows/test-smokes.yml index b50359571d..84e601aeb1 100644 --- a/.github/workflows/test-smokes.yml +++ b/.github/workflows/test-smokes.yml @@ -276,23 +276,15 @@ jobs: # Useful as TinyTeX latest release is checked in run-test.sh GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - $haserror=$false foreach ($file in ('${{ inputs.buckets }}' | ConvertFrom-Json)) { Write-Host ">>> ./run-tests.ps1 ${file}" ./run-tests.ps1 $file - $status=$LASTEXITCODE - if ($status -eq 1) { - Write-Host ">>> Error found in test file" - $haserror=$true - } else { - Write-Host ">>> No error in this test file" + if ($LASTEXITCODE -ne 0) { + Exit 1 } + Write-Host ">>> No error in this test file" } - if ($haserror) { - Exit 1 - } else { - Write-Host ">>> All tests have passed" - } + Write-Host ">>> All tests have passed" working-directory: tests shell: pwsh