mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: go vet should only test the go code in the dir
This commit is contained in:
3
test
3
test
@@ -91,6 +91,9 @@ function fmt_tests {
|
||||
|
||||
echo "Checking 'go tool vet -shadow'..."
|
||||
for path in $FMT; do
|
||||
if [ "${path##*.}" != "go" ]; then
|
||||
path="${path}/*.go"
|
||||
fi
|
||||
vetRes=$(go tool vet -shadow ${path})
|
||||
if [ -n "${vetRes}" ]; then
|
||||
echo -e "govet -shadow checking ${path} failed:\n${vetRes}"
|
||||
|
||||
Reference in New Issue
Block a user