hack/test-go.sh: make kube::test::find_dirs actually work correctly

(Also sort the list of excluded directories.)
pull/6/head
Jeff Grafton 2015-09-15 23:32:23 -07:00
parent d007c9141d
commit a345704c92
1 changed files with 10 additions and 11 deletions

View File

@ -28,17 +28,16 @@ kube::test::find_dirs() {
cd ${KUBE_ROOT}
find . -not \( \
\( \
-wholename './output' \
-o -wholename './_output' \
-o -wholename './_artifacts/' \
-o -wholename './_gopath/' \
-o -wholename './release' \
-o -wholename './target' \
-o -wholename '*/Godeps/*' \
-o -wholename './release*' \
-o -wholename '*/contrib/podex/*' \
-o -wholename '*/test/e2e/*' \
-o -wholename '*/test/integration/*' \
-path './_artifacts/*' \
-o -path './_output/*' \
-o -path './_gopath/*' \
-o -path './Godeps/*' \
-o -path './contrib/podex/*' \
-o -path './output/*' \
-o -path './release/*' \
-o -path './target/*' \
-o -path './test/e2e/*' \
-o -path './test/integration/*' \
\) -prune \
\) -name '*_test.go' -print0 | xargs -0n1 dirname | sed 's|^\./||' | sort -u
)