[Piglit] [PATCH] framework: fix aggregation to actually work.

Dylan Baker baker.dylan.c at gmail.com
Fri Apr 10 14:11:03 PDT 2015


This should have been working in previous patches, but something broke.
---
 framework/programs/summary.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/framework/programs/summary.py b/framework/programs/summary.py
index b012a48..2717d72 100644
--- a/framework/programs/summary.py
+++ b/framework/programs/summary.py
@@ -194,7 +194,10 @@ def aggregate(input_):
         sys.exit(1)
 
     try:
-        results.write(outfile)
+        # FIXME: This works, it fixes the problem, but it only works because
+        # only the json backend has the ability to agregate results at the
+        # moment.
+        backends.json._write(results, outfile)
     except IOError as e:
         if e.errno == errno.EPERM:
             print("Error: Unable to write aggregated file, permission denied.",
-- 
2.3.5



More information about the Piglit mailing list