summaryrefslogtreecommitdiffstats
path: root/test/deactivate-context
diff options
context:
space:
mode:
Diffstat (limited to 'test/deactivate-context')
-rwxr-xr-xtest/deactivate-context9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/deactivate-context b/test/deactivate-context
index 7d00761e..04d4bc81 100755
--- a/test/deactivate-context
+++ b/test/deactivate-context
@@ -8,14 +8,9 @@ bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.ofono', '/'),
'org.ofono.Manager')
-properties = manager.GetProperties()
-
-for path in properties["Modems"]:
- modem = dbus.Interface(bus.get_object('org.ofono', path),
- 'org.ofono.Modem')
-
- properties = modem.GetProperties()
+modems = manager.GetModems()
+for path, properties in modems:
if "org.ofono.ConnectionManager" not in properties["Interfaces"]:
continue