Skip to content

Commit a036936

Browse files
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.
1 parent ac01323 commit a036936

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/test-smokes.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -276,23 +276,15 @@ jobs:
276276
# Useful as TinyTeX latest release is checked in run-test.sh
277277
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
278278
run: |
279-
$haserror=$false
280279
foreach ($file in ('${{ inputs.buckets }}' | ConvertFrom-Json)) {
281280
Write-Host ">>> ./run-tests.ps1 ${file}"
282281
./run-tests.ps1 $file
283-
$status=$LASTEXITCODE
284-
if ($status -eq 1) {
285-
Write-Host ">>> Error found in test file"
286-
$haserror=$true
287-
} else {
288-
Write-Host ">>> No error in this test file"
282+
if ($LASTEXITCODE -ne 0) {
283+
Exit 1
289284
}
285+
Write-Host ">>> No error in this test file"
290286
}
291-
if ($haserror) {
292-
Exit 1
293-
} else {
294-
Write-Host ">>> All tests have passed"
295-
}
287+
Write-Host ">>> All tests have passed"
296288
working-directory: tests
297289
shell: pwsh
298290

0 commit comments

Comments
 (0)