Skip to content

Commit 6c25396

Browse files
committed
fixup! Edit Pipeline Trigger
1 parent 4084a4b commit 6c25396

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ stages:
128128
129129
# Function to run the test and capture output
130130
def run_test():
131-
command = 'CGO_ENABLED=1 go test -timeout 30m -mod=readonly -buildvcs=false -tags "unit" '
131+
os.environ['CGO_ENABLED'] = 1
132+
command = 'go test -timeout 30m -mod=readonly -buildvcs=false -tags "unit" '
132133
command += "--skip 'TestE2E*' -race -covermode atomic -coverprofile=windows-coverage.out ./npm/... ./cni/... ./platform/..."
133134
testing_process = subprocess.Popen(command, shell=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd)
134135
out, err = testing_process.communicate()

0 commit comments

Comments
 (0)