[Piglit] [PATCH] summary: fix processing of incomplete results in csv output
Thomas Wood
thomas.wood at intel.com
Mon Jun 29 05:40:56 PDT 2015
Incomplete results do not include a time or return code, so use a blank
string as the default value for these keys.
Signed-off-by: Thomas Wood <thomas.wood at intel.com>
---
framework/programs/summary.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/framework/programs/summary.py b/framework/programs/summary.py
index fef5680..069aed9 100644
--- a/framework/programs/summary.py
+++ b/framework/programs/summary.py
@@ -169,8 +169,8 @@ def csv(input_):
def write_results(output):
for name, result in testrun.tests.iteritems():
- output.write("{},{},{},{}\n".format(name, result['time'],
- result['returncode'],
+ output.write("{},{},{},{}\n".format(name, result.get('time', ""),
+ result.get('returncode', ""),
result['result']))
if args.output != "stdout":
--
2.4.2
More information about the Piglit
mailing list