Skip to content

Commit 0f82b50

Browse files
committed
Minor text fixes.
1 parent a444fed commit 0f82b50

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.kokoro/tests/diff_tests.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ echo -e "\n******************** TESTING AFFECTED PROJECTS ********************"
4242
cd github/java-docs-samples
4343
find * -name pom.xml -print0 | sort -z | while read -d $'\0' file
4444
do
45-
4645
# Navigate to project
46+
file=$(dirname "$file")
4747
pushd "$file" > /dev/null
48+
4849
set +e
49-
# Has the project changed?
50+
# Only tests changed projects
5051
git diff --quiet master.. .
5152
CHANGED=$?
52-
# Skip parents so the projects aren't tested twice
53+
# Only test leafs to prevent testing twice
5354
PARENT=$(grep "<modules>" pom.xml -c)
5455
set -e
5556

0 commit comments

Comments
 (0)