File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 17
17
./cluster/validate-cluster.sh
18
18
./hack/lib/test.sh
19
19
./hack/test-integration.sh
20
- ./hack/verify-test-featuregates.sh
21
20
./test/images/image-util.sh
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ cd "${KUBE_ROOT}"
26
26
rc=0
27
27
28
28
# find test files accessing the mutable global feature gate or interface
29
- direct_sets=$( grep -n --include ' *_test.go' -R ' MutableFeatureGate' . 2> /dev/null) || true
29
+ direct_sets=$( find -L . -name ' *_test.go' -exec grep -Hn ' MutableFeatureGate' {} \; 2> /dev/null) || true
30
30
if [[ -n " ${direct_sets} " ]]; then
31
31
echo " Test files may not access mutable global feature gates directly:" >&2
32
32
echo " ${direct_sets} " >&2
@@ -38,7 +38,7 @@ if [[ -n "${direct_sets}" ]]; then
38
38
fi
39
39
40
40
# find test files calling SetFeatureGateDuringTest and not calling the result
41
- missing_defers=$( grep -n --include ' *_test.go' -R ' SetFeatureGateDuringTest' . 2> /dev/null | grep -E -v " defer .*\\ )\\ (\\ )$" ) || true
41
+ missing_defers=$( find -L . -name ' *_test.go' -exec grep -Hn ' SetFeatureGateDuringTest' {} \; 2> /dev/null | grep -E -v " defer .*\\ )\\ (\\ )$" ) || true
42
42
if [[ -n " ${missing_defers} " ]]; then
43
43
echo " Invalid invocations of featuregatetesting.SetFeatureGateDuringTest():" >&2
44
44
echo " ${missing_defers} " >&2
You can’t perform that action at this time.
0 commit comments