[llvm-commits] [zorg] r110927 - /zorg/trunk/lnt/lnt/util/NTEmailReport.py
Daniel Dunbar
daniel at zuster.org
Thu Aug 12 09:03:59 PDT 2010
Author: ddunbar
Date: Thu Aug 12 11:03:59 2010
New Revision: 110927
URL: http://llvm.org/viewvc/llvm-project?rev=110927&view=rev
Log:
LNT/import: Add individual test results to the import result object.
Modified:
zorg/trunk/lnt/lnt/util/NTEmailReport.py
Modified: zorg/trunk/lnt/lnt/util/NTEmailReport.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/util/NTEmailReport.py?rev=110927&r1=110926&r2=110927&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/util/NTEmailReport.py (original)
+++ zorg/trunk/lnt/lnt/util/NTEmailReport.py Thu Aug 12 11:03:59 2010
@@ -168,6 +168,22 @@
else:
unchanged_tests[pset] = (name, cr)
+ # Collect the simplified results, if desired, for sending back to clients.
+ if result is not None:
+ test_results = result['test_results'] = []
+ for pset in ts_summary.parameter_sets:
+ pset_results = []
+ for name in test_names:
+ cr = sri.get_run_comparison_result(
+ run, run_status_kind, compare_to, compare_to_status_kind,
+ name, pset, comparison_window)
+ test_status = cr.get_test_status()
+ perf_status = cr.get_value_status()
+ # FIXME: Include additional information about performance
+ # changes.
+ pset_results.append( (name, test_status, perf_status) )
+ test_results.append({ 'pset' : pset, 'results' : pset_results })
+
# Generate the report.
report = StringIO.StringIO()
html_report = StringIO.StringIO()
@@ -400,7 +416,6 @@
</html>""" % locals()
return subject, report.getvalue(), html_report
- return subject, report.getvalue(), None
def getReport(result, db, run, baseurl, was_added, will_commit):
report = StringIO.StringIO()
More information about the llvm-commits
mailing list