Skip to content

Commit 49c5dc7

Browse files
committed
fixup! Edit Pipeline Trigger
1 parent 86b7652 commit 49c5dc7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ stages:
112112
cwd = os.path.realpath(cwd)
113113
bin_install_dir = os.path.join(cwd, 'bin')
114114
os.environ['GOBIN'] = bin_install_dir
115-
116-
cgo_path = sys.argv[2]
117-
os.environ['PATH'] += ':{cgo_path}'
118115
119116
report_dir = os.environ['REPORT_DIR']
120117
report_dir = os.path.realpath(report_dir)
@@ -140,9 +137,8 @@ stages:
140137
141138
# Function to run the test and capture output
142139
def run_test():
143-
#os.environ['CGO_ENABLED'] = "1"
144140
cmd_gotest = 'go test -timeout 30m -mod=readonly -buildvcs=false -tags "unit" '
145-
cmd_gotest += f"--skip 'TestE2E*' -race -covermode atomic -coverprofile={coverage_out} ./npm/... ./cni/... ./platform/..."
141+
cmd_gotest += f"--skip 'TestE2E*' -covermode atomic -coverprofile={coverage_out} ./npm/... ./cni/... ./platform/..."
146142
cmd_junitreport = f'{junit_report_bin} -set-exit-code -in {report_dir}/test.log -out {junit_xml} -iocopy'
147143
cmd_gocover = f'go tool cover -func={coverage_out}'
148144

0 commit comments

Comments
 (0)