[llvm-commits] [zorg] r101732 - /zorg/trunk/lnt/lnt/testing/__init__.py
Daniel Dunbar
daniel at zuster.org
Sun Apr 18 12:18:22 PDT 2010
Author: ddunbar
Date: Sun Apr 18 14:18:21 2010
New Revision: 101732
URL: http://llvm.org/viewvc/llvm-project?rev=101732&view=rev
Log:
LNT: Add indent argument to Report.render(), for writing more compact output files.
Modified:
zorg/trunk/lnt/lnt/testing/__init__.py
Modified: zorg/trunk/lnt/lnt/testing/__init__.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/testing/__init__.py?rev=101732&r1=101731&r2=101732&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/testing/__init__.py (original)
+++ zorg/trunk/lnt/lnt/testing/__init__.py Sun Apr 18 14:18:21 2010
@@ -37,11 +37,11 @@
for t in self.tests:
assert isinstance(t, TestSamples)
- def render(self):
+ def render(self, indent=4):
return json.dumps({ 'Machine' : self.machine.render(),
'Run' : self.run.render(),
'Tests' : [t.render() for t in self.tests] },
- sort_keys=True, indent=4)
+ sort_keys=True, indent=indent)
class Machine:
"""Information on the machine the test was run on.
More information about the llvm-commits
mailing list