Commit ae49cfd1 authored by Matt Kwong's avatar Matt Kwong

Collect xml results for Kokoro

parent 6003a612
......@@ -3,3 +3,9 @@
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/32-bit/build.sh"
timeout_mins: 120
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
......@@ -3,3 +3,9 @@
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/32-bit/build.sh"
timeout_mins: 120
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
......@@ -3,3 +3,9 @@
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/64-bit/build.sh"
timeout_mins: 120
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
......@@ -3,3 +3,9 @@
# Location of the build script in repository
build_file: "protobuf/kokoro/linux/64-bit/build.sh"
timeout_mins: 120
action {
define_artifacts {
regex: "**/sponge_log.xml"
}
}
......@@ -48,7 +48,7 @@ docker run \
# Copy output artifacts
if [ "$OUTPUT_DIR" != "" ]
then
docker cp "$CONTAINER_NAME:/var/local/git/protobuf/$OUTPUT_DIR" "$git_root" || FAILED="true"
docker cp "$CONTAINER_NAME:/var/local/git/protobuf/$OUTPUT_DIR" "${git_root}/kokoro" || FAILED="true"
fi
# remove the container, possibly killing it first
......
......@@ -57,7 +57,7 @@ cat $OUTPUT_DIR/joblog
# The directory that is copied from Docker back into the Kokoro workspace.
COPY_FROM_DOCKER=/var/local/git/protobuf/testoutput
mkdir -p $COPY_FROM_DOCKER
TESTOUTPUT_XML_FILE=$COPY_FROM_DOCKER/testresults.xml
TESTOUTPUT_XML_FILE=$COPY_FROM_DOCKER/sponge_log.xml
# Process all the output files from "parallel" and package them into a single
# .xml file with detailed, broken-down test output.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment