[Piglit] [PATCH 4/4] framework/results.py: write command to json

Dylan Baker baker.dylan.c at gmail.com
Wed Sep 23 17:55:59 PDT 2015


This was an oversight, it should have always been written to the json,
but was missed in the to_json method.

cc: Dave Airlie <airlied at gmail.com>
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---

sorry about that Dave, this should correct the problem you're seeing.

 framework/results.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/framework/results.py b/framework/results.py
index d358cca..c5f90e8 100644
--- a/framework/results.py
+++ b/framework/results.py
@@ -147,13 +147,14 @@ class TestResult(object):
         """Return the TestResult as a json serializable object."""
         obj = {
             '__type__': 'TestResult',
-            'returncode': self.returncode,
+            'command': self.command,
+            'environment': self.environment,
             'err': self.err,
             'out': self.out,
-            'time': self.time,
-            'environment': self.environment,
-            'subtests': self.subtests,
             'result': self.result,
+            'returncode': self.returncode,
+            'subtests': self.subtests,
+            'time': self.time,
         }
         return obj
 
-- 
2.5.3



More information about the Piglit mailing list