diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-08-19 13:25:20 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-19 14:20:06 -0500 |
commit | 37ac1c719603ba744e05f1b1897b07f11906e347 (patch) | |
tree | 5652cbed46aad6077f809ddeda6fb7f06be05bfc /test/process-context-settings | |
parent | cc8ade1b1fe20057f132aba59b15444282896312 (diff) | |
download | ofono-37ac1c719603ba744e05f1b1897b07f11906e347.tar.bz2 |
test: update process-context-settings to the new API
Diffstat (limited to 'test/process-context-settings')
-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 |