diff --git a/build/test-e2e-go/e2e.sh b/build/test-e2e-go/e2e.sh index 33ca206ec2..dcf3eb360b 100755 --- a/build/test-e2e-go/e2e.sh +++ b/build/test-e2e-go/e2e.sh @@ -34,6 +34,11 @@ echo "Tests took $(( end_time - start_time )) seconds" # enables running this script more flexibly, e.g. without docker in docker. if [[ -n "${ARTIFACTS}" && -d "${ARTIFACTS}" ]]; then echo "Creating junit xml report" + # Go 1.20 started using "=== NAME" when tests resume instead of "=== CONT". + # go-junit-report does not yet properly parse "=== NAME", so this hack enables + # proper parsing. + # TODO: revert when fixed https://github.com/jstemmer/go-junit-report/issues/169 + sed -i -e 's/=== NAME/=== CONT/g' test_results.txt cat test_results.txt | go-junit-report --subtest-mode=exclude-parents > "${ARTIFACTS}/junit_report.xml" if [ "$exit_code" -eq 0 ]; then junit-report reset-failure --path="${ARTIFACTS}/junit_report.xml"