diff options
| author | zhengxinwei <zhengxinwei@huawei.com> | 2023-11-18 15:10:54 +0800 |
|---|---|---|
| committer | zhengxinwei <zhengxinwei@huawei.com> | 2023-11-20 10:38:00 +0800 |
| commit | 353db5eda6051a37a40a3364c261fbb6d784e4b2 (patch) | |
| tree | 46aff09cb787e38029a8bc7556bfc29a7cde155e /hack/lib/golang.sh | |
| parent | Merge pull request #5146 from Shelley-BaoYue/bump-go1.20 (diff) | |
| download | kubeedge-353db5eda6051a37a40a3364c261fbb6d784e4b2.tar.gz | |
add go test for NegotiateTunnelPort function
Signed-off-by: zhengxinwei <zhengxinwei@huawei.com>
Diffstat (limited to 'hack/lib/golang.sh')
| -rwxr-xr-x | hack/lib/golang.sh | 4 |
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 } |
