@@ -3,13 +3,13 @@ set -e -o pipefail
33
44source hack/validate/.validate
55new_tests=$(
6- validate_diff --diff-filter=ACMR --unified=0 -- ' integration/*_test.go' |
7- grep -E ' ^(\+func )(.*)(\*testing)' || true
6+ validate_diff --diff-filter=ACMR --unified=0 -- ' integration/*_test.go' |
7+ grep -E ' ^(\+func )(.*)(\*testing)' || true
88)
99
1010if [ -z " $new_tests " ]; then
11- echo ' No new tests added to integration.'
12- return
11+ echo ' No new tests added to integration.'
12+ return
1313fi
1414
1515echo
@@ -18,12 +18,12 @@ echo "$new_tests"
1818echo " Running stress test for them."
1919
2020(
21- TESTARRAY=$( echo " $new_tests " | sed ' s/+func //' | awk -F' \\(' ' {print $1}' | tr ' \n' ' |' )
22- # Note: TEST_REPEAT will make the test suite run 5 times, restarting the daemon
23- # and each test will run 5 times in a row under the same daemon.
24- # This will make a total of 25 runs for each test in TESTARRAY.
25- export TEST_REPEAT=5
26- export TESTFLAGS=" -test.count ${TEST_REPEAT} -test.run ${TESTARRAY% ?} "
27- echo " Using test flags: $TESTFLAGS "
28- source hack/make/test-integration
21+ TESTARRAY=$( echo " $new_tests " | sed ' s/+func //' | awk -F' \\(' ' {print $1}' | tr ' \n' ' |' )
22+ # Note: TEST_REPEAT will make the test suite run 5 times, restarting the daemon
23+ # and each test will run 5 times in a row under the same daemon.
24+ # This will make a total of 25 runs for each test in TESTARRAY.
25+ export TEST_REPEAT=5
26+ export TESTFLAGS=" -test.count ${TEST_REPEAT} -test.run ${TESTARRAY% ?} "
27+ echo " Using test flags: $TESTFLAGS "
28+ source hack/make/test-integration
2929)
0 commit comments