From 0aca812a8409b6fbf45d451d10cafa84e9d3dd4f Mon Sep 17 00:00:00 2001 From: QxBytes Date: Fri, 15 Nov 2024 16:48:16 -0800 Subject: [PATCH] add set ex to ci --- .pipelines/templates/run-unit-tests.yaml | 9 +++------ .pipelines/templates/unit-tests.stages.yaml | 10 ++-------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.pipelines/templates/run-unit-tests.yaml b/.pipelines/templates/run-unit-tests.yaml index cedcae057d..3bd372b633 100644 --- a/.pipelines/templates/run-unit-tests.yaml +++ b/.pipelines/templates/run-unit-tests.yaml @@ -37,13 +37,10 @@ stages: pool: name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)" steps: + # Test changes under review; 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 ./npm/... ./cni/... ./platform/... retryCountOnTaskFailure: 3 name: "TestWindows" displayName: "Run Windows Tests" diff --git a/.pipelines/templates/unit-tests.stages.yaml b/.pipelines/templates/unit-tests.stages.yaml index 204cde4c2e..a0ad610911 100644 --- a/.pipelines/templates/unit-tests.stages.yaml +++ b/.pipelines/templates/unit-tests.stages.yaml @@ -48,18 +48,12 @@ stages: type: windows name: "$(BUILD_POOL_NAME_DEFAULT_WINDOWS_ALT)" steps: - # Test changes under review + # Test changes under review; only run one go test per script - checkout: ACNReviewChanges clean: true - - script: | cd azure-container-networking/ - cd npm/ - go test ./... - cd ../cni/ - go test ./... - cd ../platform/ - go test ./... + go test ./npm/... ./cni/... ./platform/... retryCountOnTaskFailure: 3 name: "TestWindows" displayName: "Run Windows Tests"