run-tests: use json.dumps(separators=)
authortimeless <timeless@mozdev.org>
Thu, 26 May 2016 02:35:44 +0000
changeset 29246 8dbfd3befbd7
parent 29245 9d0d1242cd48
child 29247 3e438497edca
run-tests: use json.dumps(separators=) Followup to daff05dcd184 per Martijn Pieters
tests/run-tests.py
--- a/tests/run-tests.py	Thu May 26 01:57:34 2016 +0900
+++ b/tests/run-tests.py	Thu May 26 02:35:44 2016 +0000
@@ -1836,8 +1836,8 @@
                                 tres = {'result': res}
 
                             outcome[tc.name] = tres
-                    out = json.dumps(outcome, sort_keys=True, indent=4)
-                    jsonout = '\n'.join([l.rstrip() for l in out.splitlines()])
+                    jsonout = json.dumps(outcome, sort_keys=True, indent=4,
+                                         separators=(',', ': '))
                     fp.writelines(("testreport =", jsonout))
 
             self._runner._checkhglib('Tested')