Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of test failures/errors #451

Merged

Conversation

david-yz-liu
Copy link
Contributor

Currently in the Java tester, failed/error tests were being detected as passing.

The problem was the condition checking for the presence of failure/error XML elements was treating XML elements with no children as falsey (see Caution under https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element).

The fix was the make an explicit is not None check.

Copy link
Contributor

@pretendWhale pretendWhale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding this, @david-yz-liu !

@david-yz-liu david-yz-liu merged commit c31b50f into MarkUsProject:master Sep 20, 2023
8 checks passed
@david-yz-liu david-yz-liu deleted the fix-java-tester-all-pass branch September 20, 2023 23:13
@donny-wong donny-wong added this to the v2.3.2 milestone Sep 22, 2023
donny-wong pushed a commit to donny-wong/markus-autotesting that referenced this pull request Sep 22, 2023
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.

3 participants