[LNT] r211580 - Fix server crash when there is no entry
Yi Kong
Yi.Kong at arm.com
Tue Jun 24 03:11:05 PDT 2014
Author: kongyi
Date: Tue Jun 24 05:11:05 2014
New Revision: 211580
URL: http://llvm.org/viewvc/llvm-project?rev=211580&view=rev
Log:
Fix server crash when there is no entry
Return samples as an empty list when geomean is None.
Modified:
lnt/trunk/lnt/server/reporting/analysis.py
Modified: lnt/trunk/lnt/server/reporting/analysis.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/reporting/analysis.py?rev=211580&r1=211579&r2=211580&view=diff
==============================================================================
--- lnt/trunk/lnt/server/reporting/analysis.py (original)
+++ lnt/trunk/lnt/server/reporting/analysis.py Tue Jun 24 05:11:05 2014
@@ -287,8 +287,8 @@ class RunInfo(object):
pct_delta, stddev=None, MAD=None,
cur_failed=not run_geomean,
prev_failed=not prev_geomean,
- samples=[run_geomean],
- prev_samples=[prev_geomean],
+ samples=[run_geomean] if run_geomean else [],
+ prev_samples=[prev_geomean] if prev_geomean else [],
confidence_lv=0)
def _load_samples_for_runs(self, run_ids):
More information about the llvm-commits
mailing list