File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,13 @@ GIT_REPO_DIR="${GIT_REPO_DIR:-$DEFAULT_REPO_DIR}"
3838
3939cleanup () {
4040 # Collect the test logs.
41- docker exec tfmot find \
42- -L " bazel-testlogs" \
43- \( -name " test.log" -o -name " test.xml" \) \
44- -exec cp --parents {} " ${KOKORO_ARTIFACTS_DIR} " \;
41+ # Skipped when the container workdir is $KOKORO_ARTIFACTS_DIR.
42+ if docker exec tfmot test ! . -ef " ${KOKORO_ARTIFACTS_DIR} " ; then
43+ docker exec tfmot find \
44+ -L " bazel-testlogs" \
45+ \( -name " test.log" -o -name " test.xml" \) \
46+ -exec cp --parents {} " ${KOKORO_ARTIFACTS_DIR} " \;
47+ fi
4548
4649 # Rename test.xml to sponge_log.xml so they show up in Sponge.
4750 docker exec tfmot find " ${KOKORO_ARTIFACTS_DIR} /bazel-testlogs" \
You can’t perform that action at this time.
0 commit comments