File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -21,26 +21,21 @@ shopt -s globstar
21
21
22
22
DIFF_FROM=" "
23
23
24
- # We need to temporarily turn off -e for detecting changes in the test
25
- # driver.
26
- set +e
27
-
28
24
# `--only-diff-master` will only run tests on project changes on the
29
25
# last common commit from the master branch.
30
26
if [[ $* == * --only-diff-master* ]]; then
27
+ set +e
31
28
git diff --quiet " origin/master..." .kokoro/tests .kokoro/docker \
32
29
.kokoro/trampoline_v2.sh
33
30
CHANGED=$?
31
+ set -e
34
32
if [[ " ${CHANGED} " -eq 0 ]]; then
35
33
DIFF_FROM=" origin/master..."
36
34
else
37
35
echo " Changes to test driver files detected. Running full tests."
38
36
fi
39
37
fi
40
38
41
- # Turning on the -e again.
42
- set -e
43
-
44
39
# `--only-diff-head` will only run tests on project changes from the
45
40
# previous commit.
46
41
if [[ $* == * --only-diff-head* ]]; then
You can’t perform that action at this time.
0 commit comments