projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c898c2
)
[lit] Format JSONMetricValue strings better.
author
Eric Fiselier
<eric@efcs.ca>
Wed, 21 Jan 2015 16:38:31 +0000
(16:38 +0000)
committer
Eric Fiselier
<eric@efcs.ca>
Wed, 21 Jan 2015 16:38:31 +0000
(16:38 +0000)
llvm-svn: 226672
llvm/utils/lit/lit/Test.py
patch
|
blob
|
history
diff --git
a/llvm/utils/lit/lit/Test.py
b/llvm/utils/lit/lit/Test.py
index b81023010d70ab08dbd86374d5dc4723bbb74402..38bb41b0252d59a3769a3be2097cbae659f6d109 100644
(file)
--- a/
llvm/utils/lit/lit/Test.py
+++ b/
llvm/utils/lit/lit/Test.py
@@
-91,7
+91,8
@@
class JSONMetricValue(MetricValue):
self.value = value
def format(self):
- return str(self.value)
+ e = JSONEncoder(indent=2, sort_keys=True)
+ return e.encode(self.value)
def todata(self):
return self.value