Skip to content

Commit 23b8747

Browse files
authored
Adds file to run all tests in PR (GoogleCloudPlatform#772)
1 parent 0ea346e commit 23b8747

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

testing/RUN_ALL_TESTS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Modify this file with whitespace in a PR in order to run all tests for the PR.
2+
# See "testing/run_test_suite.sh" for more details.

testing/run_test_suite.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,9 @@ FAILED_FLAKY_FILE=${TMP_REPORT_DIR}/failed_flaky
6464
# (will be empty if running from "master").
6565
FILES_CHANGED=$(git diff --name-only HEAD $(git merge-base HEAD master))
6666

67-
# If any files outside the sample directories changed, or if we are not
68-
# on a Pull Request, run the whole test suite.
69-
if grep -q ^testing\/ <<< "$FILES_CHANGED" || \
70-
grep -v ^.kokoro\/secrets.sh.enc$ <<< "$FILES_CHANGED" | grep -q ^.kokoro\/ || \
71-
grep -qv \/ <<< "$FILES_CHANGED" || \
67+
# If the file RUN_ALL_TESTS is modified, or if we were not triggered from a Pull
68+
# Request, run the whole test suite.
69+
if grep -q ^testing\/RUN_ALL_TESTS$ <<< "$FILES_CHANGED" || \
7270
[ -z "$IS_PULL_REQUEST" ]; then
7371
RUN_ALL_TESTS=1
7472
else

0 commit comments

Comments
 (0)