[Piglit] [PATCH] summary/csv: Fix elapsed time output

Adam Jackson ajax at redhat.com
Thu Sep 1 14:26:45 UTC 2016


"<framework.results.TimeAttribute object @ wherever>" isn't an
especially useful thing to print in the output.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 framework/programs/summary.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/programs/summary.py b/framework/programs/summary.py
index c297a7b..e400d9a 100644
--- a/framework/programs/summary.py
+++ b/framework/programs/summary.py
@@ -190,7 +190,7 @@ def csv(input_):
 
     def write_results(output):
         for name, result in six.iteritems(testrun.tests):
-            output.write("{},{},{},{}\n".format(name, result.time,
+            output.write("{},{},{},{}\n".format(name, result.time.total,
                                                 result.returncode,
                                                 result.result))
 
-- 
2.7.4



More information about the Piglit mailing list