diff --git a/test b/test index 7d3a29809..8045e1a1b 100755 --- a/test +++ b/test @@ -27,7 +27,7 @@ GOSIMPLE_UNUSED_PATHS=$(go list ./... | sed -e 's/github.com\/coreos\/etcd\///g' COVER=${COVER:-"-cover"} # Hack: gofmt ./ will recursively check the .git directory. So use *.go for gofmt. -IGNORE_PKGS="(cmd|vendor|etcdserverpb|rafttest)" +IGNORE_PKGS="(cmd|vendor|etcdserverpb|rafttest|gopath.proto)" INTEGRATION_PKGS="(integration|e2e|contrib|functional-tester)" TEST_PKGS=`find . -name \*_test.go | while read a; do dirname $a; done | sort | uniq | egrep -v "$IGNORE_PKGS" | sed "s|\./||g"` FORMATTABLE=`find . -name \*.go | while read a; do echo $(dirname $a)/"*.go"; done | sort | uniq | egrep -v "$IGNORE_PKGS" | sed "s|\./||g"` @@ -202,7 +202,7 @@ function fmt_pass { fi echo "Checking for license header..." - licRes=$(for file in $(find . -type f -iname '*.go' ! -path './cmd/*'); do + licRes=$(for file in $(find . -type f -iname '*.go' ! -path './cmd/*' ! -path './gopath.proto/*'); do head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo -e " ${file}" done;) if [ -n "${licRes}" ]; then