run-tests: use json.dumps(separators=)
Followup to daff05dcd184 per Martijn Pieters
--- 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')