forked from OSchip/llvm-project
lit: Add '-a' option to display commands+output of all tests
The existing -v option only displays commands and outputs for failed tests, the newly introduced -a displays it for all executed tests. llvm-svn: 251806
This commit is contained in:
parent
ac5540f3ea
commit
493edbbe49
|
@ -56,7 +56,9 @@ class TestingProgressDisplay(object):
|
|||
self.completed, self.numTests))
|
||||
|
||||
# Show the test failure output, if requested.
|
||||
if test.result.code.isFailure and self.opts.showOutput:
|
||||
if (test.result.code.isFailure and self.opts.showOutput) or \
|
||||
self.opts.showAllOutput:
|
||||
if test.result.code.isFailure:
|
||||
print("%s TEST '%s' FAILED %s" % ('*'*20, test.getFullName(),
|
||||
'*'*20))
|
||||
print(test.result.output)
|
||||
|
@ -161,7 +163,10 @@ def main(builtinParameters = {}):
|
|||
help="Reduce amount of output",
|
||||
action="store_true", default=False)
|
||||
group.add_option("-v", "--verbose", dest="showOutput",
|
||||
help="Show all test output",
|
||||
help="Show test output for failures",
|
||||
action="store_true", default=False)
|
||||
group.add_option("-a", "--show-all", dest="showAllOutput",
|
||||
help="Display all commandlines and output",
|
||||
action="store_true", default=False)
|
||||
group.add_option("-o", "--output", dest="output_path",
|
||||
help="Write test results to the provided path",
|
||||
|
|
Loading…
Reference in New Issue