diff --git a/.kokoro/build-with-appengine.sh b/.kokoro/build-with-appengine.sh index 6154c6083b..bcdd4fbd94 100755 --- a/.kokoro/build-with-appengine.sh +++ b/.kokoro/build-with-appengine.sh @@ -65,9 +65,10 @@ npm install # If tests are running against master, configure Build Cop # to open issues on failures: -if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"release"* ]]; then +if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"presubmit"* ]]; then export MOCHA_REPORTER_OUTPUT=sponge_log.xml export MOCHA_REPORTER=xunit + export MOCHA_REPORTER_SUITENAME=${PROJECT} cleanup() { chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop $KOKORO_GFILE_DIR/linux_amd64/buildcop diff --git a/.kokoro/build-with-run.sh b/.kokoro/build-with-run.sh index 924e6003a7..8aa6045f62 100755 --- a/.kokoro/build-with-run.sh +++ b/.kokoro/build-with-run.sh @@ -61,9 +61,10 @@ npm install # If tests are running against master, configure Build Cop # to open issues on failures: -if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"release"* ]]; then +if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"presubmit"* ]]; then export MOCHA_REPORTER_OUTPUT=sponge_log.xml export MOCHA_REPORTER=xunit + export MOCHA_REPORTER_SUITENAME=${PROJECT} cleanup() { chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop $KOKORO_GFILE_DIR/linux_amd64/buildcop