[test-suite] r264045 - [cmake] Properly convert custom metrics to Lit metric types
James Molloy via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 22 05:36:50 PDT 2016
Author: jamesm
Date: Tue Mar 22 07:36:50 2016
New Revision: 264045
URL: http://llvm.org/viewvc/llvm-project?rev=264045&view=rev
Log:
[cmake] Properly convert custom metrics to Lit metric types
Lit complains if you give it metrics as floats.
Modified:
test-suite/trunk/litsupport/testplan.py
Modified: test-suite/trunk/litsupport/testplan.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/testplan.py?rev=264045&r1=264044&r2=264045&view=diff
==============================================================================
--- test-suite/trunk/litsupport/testplan.py (original)
+++ test-suite/trunk/litsupport/testplan.py Tue Mar 22 07:36:50 2016
@@ -146,7 +146,7 @@ def executePlan(context, plan):
logging.warning("Metric script for '%s' failed", metric)
continue
try:
- value = float(out)
+ value = lit.Test.toMetricValue(float(out))
context.result_metrics[metric] = value
except ValueError:
logging.warning("Metric reported for '%s' is not a float: '%s'",
More information about the llvm-commits
mailing list