Skip to content

Commit

Permalink
backport: ci: combine go tests such that any test failure will report…
Browse files Browse the repository at this point in the history
… a failure for the entire task (#3156) (#3488)

ci: combine go tests such that any test failure will report a failure for the entire task (#3156)

* add set ex to ci

* add race and timeout args

* remove race check
  • Loading branch information
QxBytes authored Mar 7, 2025
1 parent fa9f704 commit 9246dca
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .pipelines/templates/run-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ stages:
pool:
name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)"
steps:
# Only run one go test per script
- script: |
cd npm/
go test ./...
cd ../cni/
go test ./...
cd ../platform/
go test ./...
cd azure-container-networking/
go test -timeout 30m ./npm/... ./cni/... ./platform/...
retryCountOnTaskFailure: 3
name: "TestWindows"
displayName: "Run Windows Tests"

0 comments on commit 9246dca

Please sign in to comment.