mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: skip govet shadow tests for now
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
parent
2cab6edf94
commit
d4d57c5422
5
test
5
test
@ -460,12 +460,12 @@ function govet_shadow_pass {
|
|||||||
# shellcheck disable=SC2206
|
# shellcheck disable=SC2206
|
||||||
fmtpkgs=($fmtpkgs)
|
fmtpkgs=($fmtpkgs)
|
||||||
# Golang 1.12 onwards the experimental -shadow option is no longer available with go vet
|
# Golang 1.12 onwards the experimental -shadow option is no longer available with go vet
|
||||||
go get golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
|
go get -v golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
|
||||||
export PATH=${GOPATH}/bin:${PATH}
|
export PATH=${GOPATH}/bin:${PATH}
|
||||||
shadow_tool=$(which shadow)
|
shadow_tool=$(which shadow)
|
||||||
vetRes=$(go vet -all -vettool="${shadow_tool}" "${TEST[@]}")
|
vetRes=$(go vet -all -vettool="${shadow_tool}" "${TEST[@]}")
|
||||||
if [ -n "${vetRes}" ]; then
|
if [ -n "${vetRes}" ]; then
|
||||||
echo -e "govet -all -shadow checking failed:\\n${vetRes}"
|
echo -e "govet -shadow checking failed:\\n${vetRes}"
|
||||||
exit 255
|
exit 255
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -617,7 +617,6 @@ function fmt_pass {
|
|||||||
goword \
|
goword \
|
||||||
gofmt \
|
gofmt \
|
||||||
govet \
|
govet \
|
||||||
govet_shadow \
|
|
||||||
revive \
|
revive \
|
||||||
license_header \
|
license_header \
|
||||||
receiver_name \
|
receiver_name \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user