mysql-tester icon indicating copy to clipboard operation
mysql-tester copied to clipboard

Fix empty xunit file on error.

Open mjonss opened this issue 1 year ago • 2 comments

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.

mjonss avatar Dec 06 '23 12:12 mjonss

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 18 '24 13:02 CLAassistant

@mjonss Could we merge it?

wuhuizuo avatar Feb 18 '24 13:02 wuhuizuo