summaryrefslogtreecommitdiff
path: root/hack/lib/golang.sh
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2023-11-21 15:57:35 +0800
committerGitHub <noreply@github.com>2023-11-21 15:57:35 +0800
commitca37bde89e45b4fca2d6c6bf12424f78f9c32f36 (patch)
tree4d0fdc8a0786d057d2f60299ac72b38a95264333 /hack/lib/golang.sh
parentMerge pull request #5165 from Shelley-BaoYue/conformance-image (diff)
parentadd go test for NegotiateTunnelPort function (diff)
downloadkubeedge-ca37bde89e45b4fca2d6c6bf12424f78f9c32f36.tar.gz
Merge pull request #5176 from ZhengXinwei-F/bugfix-1118-1
add go test for NegotiateTunnelPort function
Diffstat (limited to 'hack/lib/golang.sh')
-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 a60a4cf38..990901d67 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
}