Skip to content

Fix empty xunit file on error.#118

Open
mjonss wants to merge 3 commits into
pingcap:masterfrom
mjonss:fix-xunit-result-xml-file
Open

Fix empty xunit file on error.#118
mjonss wants to merge 3 commits into
pingcap:masterfrom
mjonss:fix-xunit-result-xml-file

Conversation

@mjonss

@mjonss mjonss commented Dec 6, 2023

Copy link
Copy Markdown
Collaborator

Close: #116

Issue was that os.Exit(1) was used on error, which bypasses all defer function.

Fix consistently use the already existing global testSuite and write the xunit file explicitly in the end of the main function, before possible os.Exit() calls.

Issue was that os.Exit(1) was used on error, which bypasses all
defer function.

Fix consistently use the already existing global testSuite and write
the xunit file explicitly in the end of the main function, before
possible os.Exit() calls.
@mjonss mjonss requested review from bb7133, dveeden and wuhuizuo December 6, 2023 18:08
@CLAassistant

CLAassistant commented Feb 18, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@wuhuizuo

Copy link
Copy Markdown
Collaborator

@mjonss Could we merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty tests for failed suites in junit xml report file.

4 participants