From 726d720c782c091c1cd5cd3d2ae77c5cd475e855 Mon Sep 17 00:00:00 2001 From: Cao Shufeng Date: Mon, 15 May 2017 15:36:27 +0800 Subject: [PATCH] Fix invalid bash script in unit test. This change fix such error when we run "make test": "find: invalid expression; you have used a binary operator '-o' with nothing before it." --- hack/make-rules/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh index 1abfc827cc3..d577645fd0b 100755 --- a/hack/make-rules/test.sh +++ b/hack/make-rules/test.sh @@ -84,7 +84,7 @@ kube::test::find_dirs() { find ./staging/src/k8s.io/kube-apiextensions-server -not \( \ \( \ - -o -path './test/integration/*' \ + -path '*/test/integration/*' \ \) -prune \ \) -name '*_test.go' \ -name '*_test.go' -print0 | xargs -0n1 dirname | sed 's|^\./staging/src/|./vendor/|' | LC_ALL=C sort -u