Browse code

hack/validate/deprecate-integration-cli: don't exit on success

The `hack/validate/deprecate-integration-cli` script exited on
success. As a result, validation steps to run afterwards would
not be executed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/10/11 20:15:01
Showing 1 changed files
... ...
@@ -9,17 +9,17 @@ new_tests=$(
9 9
 	grep -E '^\+func (.*) Test' || true
10 10
 )
11 11
 
12
-if [ -z "$new_tests" ]; then
12
+if [ -n "$new_tests" ]; then
13
+	{
14
+		echo "The following new tests were added to integration-cli:"
15
+		echo
16
+		echo "$new_tests"
17
+		echo
18
+		echo "integration-cli is deprecated. Please add an API integration test to"
19
+		echo "./integration/COMPONENT/. See ./TESTING.md for more details."
20
+		echo
21
+	} >&2
22
+	false
23
+else
13 24
 	echo 'Congratulations!  No new tests added to integration-cli.'
14
-	exit
15 25
 fi
16
-
17
-echo "The following new tests were added to integration-cli:"
18
-echo
19
-echo "$new_tests"
20
-echo
21
-echo "integration-cli is deprecated. Please add an API integration test to"
22
-echo "./integration/COMPONENT/. See ./TESTING.md for more details."
23
-echo
24
-
25
-exit 1