summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-03-31 20:36:49 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-03-31 20:36:49 -0700
commit0cded07a3be87def98f9aafe7b5dd6c8f3b232e9 (patch)
tree64bb88126194b5b0f47b4166cc8f25a15a1d042d /test
parent2da467e698563d3be334a2bbf7038cb74e56c753 (diff)
downloadconnman-0cded07a3be87def98f9aafe7b5dd6c8f3b232e9.tar.gz
connman-0cded07a3be87def98f9aafe7b5dd6c8f3b232e9.tar.bz2
connman-0cded07a3be87def98f9aafe7b5dd6c8f3b232e9.zip
Indicate the current active profile
Diffstat (limited to 'test')
-rwxr-xr-xtest/list-profiles7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/list-profiles b/test/list-profiles
index 9a68d20e..710a36c2 100755
--- a/test/list-profiles
+++ b/test/list-profiles
@@ -9,8 +9,13 @@ manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
properties = manager.GetProperties()
+active = properties["ActiveProfile"]
+
for path in properties["Profiles"]:
- print "[ %s ]" % (path)
+ if (active == path):
+ print "[ %s ] <== active" % (path)
+ else:
+ print "[ %s ]" % (path)
profile = dbus.Interface(bus.get_object("org.moblin.connman", path),
"org.moblin.connman.Profile")