Skip to content

Commit 38246c4

Browse files
committed
fixup! Edit Pipeline Trigger
1 parent a85823b commit 38246c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pipelines/templates/run-unit-tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ stages:
120120
121121
# Function to run the test and capture output
122122
def run_test():
123-
test_str = 'go test -timeout 30m -mod=readonly -buildvcs=false -tags "unit" ' +
124-
"--skip 'TestE2E*' -race -covermode atomic -coverprofile=windows-coverage.out ./npm/... ./cni/... ./platform/...;" +
125-
'go tool cover -func=windows-coverage.out'
126-
result = subprocess.run(command, capture_output=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
123+
command = 'go test -timeout 30m -mod=readonly -buildvcs=false -tags "unit" ' +
124+
"--skip 'TestE2E*' -race -covermode atomic -coverprofile=windows-coverage.out ./npm/... ./cni/... ./platform/...;" +
125+
'go tool cover -func=windows-coverage.out'
126+
result = subprocess.run(command, capture_output=True, shell=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
127127
test_exit_code = result.returncode
128128
129129
# Write output to report XML using go-junit-report

0 commit comments

Comments
 (0)