Reviewed-by: Dylan Baker <[email protected]>
On Mon, Jun 29, 2015 at 01:40:56PM +0100, Thomas Wood wrote: > 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 <[email protected]> > --- > 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 > > _______________________________________________ > Piglit mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/piglit
signature.asc
Description: Digital signature
_______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
