This is an archive of the discontinued LLVM Phabricator instance.

[lit] Fix a bug where UNRESOLVED tests were not handled in the XUnit XML printer.
ClosedPublic

Authored by delcypher on Apr 12 2018, 6:21 AM.

Details

Summary

[lit] Fix a bug where UNRESOLVED tests were not handled in the XUnit
XML printer.

A test has been added that tries to comprehensively test emitting
XUnit XML output for shell tests.

Diff Detail

Repository
rL LLVM

Event Timeline

delcypher created this revision.Apr 12 2018, 6:21 AM
kubamracek accepted this revision.Apr 12 2018, 6:22 AM

LGTM. Thanks!

This revision is now accepted and ready to land.Apr 12 2018, 6:22 AM

LGTM. Thanks!

@kubamracek Thanks. I'm going to wait a day or so before committing this though. I'd like some of the other people you use this feature time to review.

george.karpenkov added inline comments.
utils/lit/lit/Test.py
377 ↗(On Diff #142162)

BTW x if x else y in python is equivalent to x or y. This is optional, since the semantics would be slightly different, but the output would be the same

delcypher added inline comments.Apr 12 2018, 12:44 PM
utils/lit/lit/Test.py
377 ↗(On Diff #142162)

Interesting I didn't know that python's or operator returned the type of the selected operand rather than a boolean. That is a feature I intended to never use. I want to explicitly check for None here because that's the case I want to handle. self.result.elapsed or 0.0 is very obtuse.

cmatthews accepted this revision.Apr 12 2018, 4:14 PM

Looks good! Thanks!

This revision was automatically updated to reflect the committed changes.