diff options
-rwxr-xr-x | test/process-context-settings | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/test/process-context-settings b/test/process-context-settings index 9bdde074..67e679e7 100755 --- a/test/process-context-settings +++ b/test/process-context-settings @@ -16,20 +16,15 @@ for path in properties["Modems"]: properties = modem.GetProperties() - if "org.ofono.DataConnectionManager" not in properties["Interfaces"]: + if "org.ofono.ConnectionManager" not in properties["Interfaces"]: continue - connmgr = dbus.Interface(bus.get_object('org.ofono', path), - 'org.ofono.DataConnectionManager') + connman = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.ConnectionManager') - properties = connmgr.GetProperties() - - for path in properties["PrimaryContexts"]: - context = dbus.Interface(bus.get_object('org.ofono', path), - 'org.ofono.PrimaryDataContext') - - properties = context.GetProperties() + contexts = connman.GetContexts() + for path, properties in contexts: if properties["Active"] == dbus.Boolean(0): continue |