summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-counter6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-counter b/test/test-counter
index 7c2fa4ab..111d4fc5 100755
--- a/test/test-counter
+++ b/test/test-counter
@@ -34,7 +34,11 @@ class Counter(dbus.service.Object):
in_signature='oa{sv}', out_signature='')
def Usage(self, path, stats):
print "%s" % (path)
- for key in stats.keys():
+
+ keys = stats.keys()
+ keys.sort()
+
+ for key in keys:
val = int(stats[key])
str = " %s = %s" % (key, val)