From a345704c92a0006f69f5296964df1b337e6c6e8d Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Tue, 15 Sep 2015 23:32:23 -0700 Subject: [PATCH] hack/test-go.sh: make kube::test::find_dirs actually work correctly (Also sort the list of excluded directories.) --- hack/test-go.sh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/hack/test-go.sh b/hack/test-go.sh index c453d1921a9..74ab68a4173 100755 --- a/hack/test-go.sh +++ b/hack/test-go.sh @@ -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 )