summaryrefslogtreecommitdiff
path: root/hack/lib/golang.sh
diff options
context:
space:
mode:
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 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
}