[llvm-commits] [zorg] r151092 - /zorg/trunk/lnt/lnt/tests/compile.py

Daniel Dunbar daniel at zuster.org
Tue Feb 21 13:56:28 PST 2012


Author: ddunbar
Date: Tue Feb 21 15:56:27 2012
New Revision: 151092

URL: http://llvm.org/viewvc/llvm-project?rev=151092&view=rev
Log:
[lnt] lnt.tests.compile: Save a copy of the report to the test directory.

Modified:
    zorg/trunk/lnt/lnt/tests/compile.py

Modified: zorg/trunk/lnt/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/compile.py?rev=151092&r1=151091&r2=151092&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/compile.py (original)
+++ zorg/trunk/lnt/lnt/tests/compile.py Tue Feb 21 15:56:27 2012
@@ -769,7 +769,14 @@
         machine = lnt.testing.Machine(opts.machine_name, machine_info)
         run = lnt.testing.Run(start_time, end_time, info = run_info)
 
-        return lnt.testing.Report(machine, run, testsamples)
+        # Write out the report.
+        lnt_report_path = os.path.join(g_output_dir, 'report.json')
+        report = lnt.testing.Report(machine, run, testsamples)
+        lnt_report_file = open(lnt_report_path, 'w')
+        print >>lnt_report_file, report.render()
+        lnt_report_file.close()
+
+        return report
 
 def create_instance():
     return CompileTest()





More information about the llvm-commits mailing list