Skip to content

Commit 531fc19

Browse files
Merge pull request #20218 from smarterclayton/catch_more_output
Store the test error log and the report output to the artifacts dir
2 parents c9aac1c + 1bf921a commit 531fc19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hack/test-go.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,11 @@ if [[ -n "${junit_report}" ]]; then
132132
report_file="$( mktemp "${ARTIFACT_DIR}/unit_report_XXXXX" ).xml"
133133

134134
go test -json ${gotest_flags} ${test_packages} 2>"${test_error_file}" | tee "${JUNIT_REPORT_OUTPUT}" | gotest2junit > "${report_file}"
135-
136135
test_return_code="${PIPESTATUS[0]}"
137136

137+
gzip "${test_error_file}" -c > "${ARTIFACT_DIR}/unit-error.log.gz"
138+
gzip "${JUNIT_REPORT_OUTPUT}" -c > "${ARTIFACT_DIR}/unit.log.gz"
139+
138140
set -o pipefail
139141

140142
if [[ -s "${test_error_file}" ]]; then

0 commit comments

Comments
 (0)