hack/test-go.sh: make kube::test::find_dirs actually work correctly
(Also sort the list of excluded directories.)
This commit is contained in:
		@@ -28,17 +28,16 @@ kube::test::find_dirs() {
 | 
				
			|||||||
    cd ${KUBE_ROOT}
 | 
					    cd ${KUBE_ROOT}
 | 
				
			||||||
    find . -not \( \
 | 
					    find . -not \( \
 | 
				
			||||||
        \( \
 | 
					        \( \
 | 
				
			||||||
          -wholename './output' \
 | 
					          -path './_artifacts/*' \
 | 
				
			||||||
          -o -wholename './_output' \
 | 
					          -o -path './_output/*' \
 | 
				
			||||||
          -o -wholename './_artifacts/' \
 | 
					          -o -path './_gopath/*' \
 | 
				
			||||||
          -o -wholename './_gopath/' \
 | 
					          -o -path './Godeps/*' \
 | 
				
			||||||
          -o -wholename './release' \
 | 
					          -o -path './contrib/podex/*' \
 | 
				
			||||||
          -o -wholename './target' \
 | 
					          -o -path './output/*' \
 | 
				
			||||||
          -o -wholename '*/Godeps/*' \
 | 
					          -o -path './release/*' \
 | 
				
			||||||
          -o -wholename './release*' \
 | 
					          -o -path './target/*' \
 | 
				
			||||||
          -o -wholename '*/contrib/podex/*' \
 | 
					          -o -path './test/e2e/*' \
 | 
				
			||||||
          -o -wholename '*/test/e2e/*' \
 | 
					          -o -path './test/integration/*' \
 | 
				
			||||||
          -o -wholename '*/test/integration/*' \
 | 
					 | 
				
			||||||
        \) -prune \
 | 
					        \) -prune \
 | 
				
			||||||
      \) -name '*_test.go' -print0 | xargs -0n1 dirname | sed 's|^\./||' | sort -u
 | 
					      \) -name '*_test.go' -print0 | xargs -0n1 dirname | sed 's|^\./||' | sort -u
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user