File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,12 @@ if [[ $KOKORO_JOB_NAME == *"continuous"* ]]; then
161
161
# CHANGED_DIRS is the list of significant top-level directories that changed,
162
162
# but weren't deleted by the current PR. CHANGED_DIRS will be empty when run on main.
163
163
CHANGED_DIRS=$( echo " $SIGNIFICANT_CHANGES " | tr ' ' ' \n' | grep " /" | cut -d/ -f1 | sort -u | tr ' \n' ' ' | xargs ls -d 2> /dev/null || true)
164
+ if [[ -n $TARGET_MODULE ]]; then
165
+ pushd $TARGET_MODULE > /dev/null;
166
+ runDirectoryTests
167
+ popd > /dev/null
168
+ elif [[ -z $SIGNIFICANT_CHANGES ]] || echo " $SIGNIFICANT_CHANGES " | tr ' ' ' \n' | grep " ^go.mod$" || [[ $CHANGED_DIRS =~ " internal" ]]; then
164
169
# If PR changes affect all submodules, then run all tests.
165
- if [[ -z $SIGNIFICANT_CHANGES ]] || echo " $SIGNIFICANT_CHANGES " | tr ' ' ' \n' | grep " ^go.mod$" || [[ $CHANGED_DIRS =~ " internal" ]]; then
166
170
testAllModules
167
171
else
168
172
runDirectoryTests . # Always run base tests.
You can’t perform that action at this time.
0 commit comments