Bug 1237739 - Sort keys in generated graph; r=garndt

Deterministic output is easier to read and test. We're not fully
deterministic with this patch, but it's a start.
This commit is contained in:
Gregory Szorc
2016-01-07 12:26:12 -08:00
parent a3106277ef
commit 5153067a0e

View File

@@ -570,7 +570,7 @@ class Graph(object):
graph.pop('scopes', None)
graph.pop('metadata', None)
print(json.dumps(graph, indent=4))
print(json.dumps(graph, indent=4, sort_keys=True))
@CommandProvider
class CIBuild(object):