Skip to content

Commit cf85fad

Browse files
author
Takashi Matsuo
committed
Allow git diff to fail
1 parent 210b653 commit cf85fad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.kokoro/tests/run_tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ shopt -s globstar
2121

2222
DIFF_FROM=""
2323

24+
# We need to temporarily turn off -e for detecting changes in the test
25+
# driver.
26+
set +e
27+
2428
# `--only-diff-master` will only run tests on project changes on the
2529
# last common commit from the master branch.
2630
if [[ $* == *--only-diff-master* ]]; then
@@ -34,6 +38,9 @@ if [[ $* == *--only-diff-master* ]]; then
3438
fi
3539
fi
3640

41+
# Turning on the -e again.
42+
set -e
43+
3744
# `--only-diff-head` will only run tests on project changes from the
3845
# previous commit.
3946
if [[ $* == *--only-diff-head* ]]; then

0 commit comments

Comments
 (0)