From 0f82b509343fc312128c250c2c94ae916cba95d7 Mon Sep 17 00:00:00 2001 From: Kurtis Van Gent Date: Wed, 14 Feb 2018 11:25:14 -0800 Subject: [PATCH] Minor text fixes. --- .kokoro/tests/diff_tests.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.kokoro/tests/diff_tests.sh b/.kokoro/tests/diff_tests.sh index ec135a969f3..0fab39a60b8 100755 --- a/.kokoro/tests/diff_tests.sh +++ b/.kokoro/tests/diff_tests.sh @@ -42,14 +42,15 @@ echo -e "\n******************** TESTING AFFECTED PROJECTS ********************" cd github/java-docs-samples find * -name pom.xml -print0 | sort -z | while read -d $'\0' file do - # Navigate to project + file=$(dirname "$file") pushd "$file" > /dev/null + set +e - # Has the project changed? + # Only tests changed projects git diff --quiet master.. . CHANGED=$? - # Skip parents so the projects aren't tested twice + # Only test leafs to prevent testing twice PARENT=$(grep "" pom.xml -c) set -e