Merge pull request #109112 from dims/prune-junit-xml-files

Prune junit xml files to avoid issues with test grid.
This commit is contained in:
Kubernetes Prow Robot
2022-03-30 14:50:08 -07:00
committed by GitHub
3 changed files with 224 additions and 0 deletions

View File

@@ -240,6 +240,14 @@ produceJUnitXMLReport() {
rm "${junit_filename_prefix}"*.stdout
fi
if ! command -v prune-junit-xml >/dev/null 2>&1; then
kube::log::status "prune-junit-xml not found; installing from hack/tools"
pushd "${KUBE_ROOT}/cmd/prune-junit-xml" >/dev/null
GO111MODULE=on go install .
popd >/dev/null
fi
prune-junit-xml "${junit_xml_filename}"
kube::log::status "Saved JUnit XML test report to ${junit_xml_filename}"
}