From b88c98c1f9c08506d218466b4562f2864782942b Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Sun, 2 Jun 2019 18:07:37 +0200
Subject: [PATCH] AthenaConfiguration: Dump properties in a predictable order.

In printProperties(), print the properties in sorted order.
---
 Control/AthenaConfiguration/python/ComponentAccumulator.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Control/AthenaConfiguration/python/ComponentAccumulator.py b/Control/AthenaConfiguration/python/ComponentAccumulator.py
index af8b4ac838b..43c3ff73a8a 100644
--- a/Control/AthenaConfiguration/python/ComponentAccumulator.py
+++ b/Control/AthenaConfiguration/python/ComponentAccumulator.py
@@ -24,7 +24,12 @@ class ConfigurationError(RuntimeError):
 _servicesToCreate=frozenset(('GeoModelSvc','TileInfoLoader'))
 
 def printProperties(msg, c, nestLevel = 0):
-    for propname, propval in six.iteritems(c.getValuedProperties()):
+    # Iterate in sorted order.
+    props = c.getValuedProperties()
+    propnames = list(props.keys())
+    propnames.sort()
+    for propname in propnames:
+        propval = props[propname]
         # Ignore empty lists
         if propval==[]:
             continue
-- 
GitLab