From a0e426dd6d2432fd307b5f77c4beb7028e4a52ab 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 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.kokoro/tests/diff_tests.sh b/.kokoro/tests/diff_tests.sh index ec135a969f3..ffdefb61997 100755 --- a/.kokoro/tests/diff_tests.sh +++ b/.kokoro/tests/diff_tests.sh @@ -19,7 +19,7 @@ shopt -s globstar trap '' HUP # Update gcloud and check version -gcloud components update --quiet --verbosity="error" +gcloud components update --quiet 1> /dev/null echo -e "\n ********** GCLOUD INFO *********** \n" gcloud -v echo -e "\n ********** MAVEN INFO *********** \n" @@ -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 @@ -66,7 +67,7 @@ do -Dmaven.test.redirectTestOutputToFile=true \ -Dbigtable.projectID="${GOOGLE_CLOUD_PROJECT}" \ -Dbigtable.instanceID=instance - echo -e " Tests complete. \n" + echo -e "\n Tests complete. \n" fi popd > /dev/null