summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorzhengxinwei <zhengxinwei@huawei.com>2023-11-18 15:10:54 +0800
committerzhengxinwei <zhengxinwei@huawei.com>2023-11-20 10:38:00 +0800
commit353db5eda6051a37a40a3364c261fbb6d784e4b2 (patch)
tree46aff09cb787e38029a8bc7556bfc29a7cde155e /hack
parentMerge pull request #5146 from Shelley-BaoYue/bump-go1.20 (diff)
downloadkubeedge-353db5eda6051a37a40a3364c261fbb6d784e4b2.tar.gz
add go test for NegotiateTunnelPort function
Signed-off-by: zhengxinwei <zhengxinwei@huawei.com>
Diffstat (limited to 'hack')
-rwxr-xr-xhack/lib/golang.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh
index 4dd19cbf9..7553eb474 100755
--- a/hack/lib/golang.sh
+++ b/hack/lib/golang.sh
@@ -459,8 +459,8 @@ kubeedge::golang::run_test() {
local profile=${PROFILE:-""}
if [[ $profile ]]; then
- go test "-coverprofile=${profile}" ${testdirs[@]}
+ go test -gcflags "all=-N -l" "-coverprofile=${profile}" ${testdirs[@]}
else
- go test ${testdirs[@]}
+ go test -gcflags "all=-N -l" ${testdirs[@]}
fi
}