Browse Source

Merge pull request #1137 from philips/gofmt-hack

test: stop running gofmt ./
Brandon Philips 11 years ago
parent
commit
a4cca35e9d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      test

+ 4 - 2
test

@@ -14,8 +14,10 @@ COVER=${COVER:-"-cover"}
 
 source ./build
 
-TESTABLE="client etcdserver etcdserver/etcdhttp etcdserver/etcdserverpb functional proxy raft snap store wait wal ./"
-FORMATTABLE="$TESTABLE cors.go"
+# Hack: gofmt ./ will recursively check the .git directory. So use *.go for gofmt.
+TESTABLE_AND_FORMATTABLE="client etcdserver etcdserver/etcdhttp etcdserver/etcdserverpb functional proxy raft snap store wait wal"
+TESTABLE="$TESTABLE_AND_FORMATTABLE ./"
+FORMATTABLE="$TESTABLE_AND_FORMATTABLE *.go"
 
 # user has not provided PKG override
 if [ -z "$PKG" ]; then