[LNT] r308810 - tests/test_suite: Add --output option
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 21 17:09:42 PDT 2017
Author: matze
Date: Fri Jul 21 17:09:42 2017
New Revision: 308810
URL: http://llvm.org/viewvc/llvm-project?rev=308810&view=rev
Log:
tests/test_suite: Add --output option
This is in line with the `runtest nt` and `runtest compile` modes which
already had this option.
Modified:
lnt/trunk/lnt/tests/test_suite.py
Modified: lnt/trunk/lnt/tests/test_suite.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/test_suite.py?rev=308810&r1=308809&r2=308810&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/test_suite.py (original)
+++ lnt/trunk/lnt/tests/test_suite.py Fri Jul 21 17:09:42 2017
@@ -333,6 +333,10 @@ class TestSuiteTest(BuiltinTest):
with open(report_path, 'w') as fd:
fd.write(report.render())
+ if opts.output:
+ with open(opts.output, 'w') as fd:
+ fd.write(report.render())
+
xml_report_path = os.path.join(self._base_path,
'test-results.xunit.xml')
@@ -1058,6 +1062,9 @@ class TestSuiteTest(BuiltinTest):
@click.option("--commit", "commit",
help="whether the autosubmit result should be committed",
type=int, default=True)
+ at click.option("--output", "output", metavar="PATH",
+ help="write raw report data to PATH (or stdout if '-')",
+ default=None)
@click.option("--succinct-compile-output", "succinct",
help="run Make without VERBOSE=1", is_flag=True)
@click.option("-v", "--verbose", "verbose", is_flag=True, default=False,
More information about the llvm-commits
mailing list