diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-07 22:44:24 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-07 22:44:24 +0100 |
commit | 424c620a3248b8850d839997d08336a7cf15818d (patch) | |
tree | 21909d41d1a3a5d49f4769dda0ba6ee4d1930f7d /test | |
parent | 2bacfdc955cfd085cee49c4f588d94f2330831ba (diff) | |
download | connman-424c620a3248b8850d839997d08336a7cf15818d.tar.gz connman-424c620a3248b8850d839997d08336a7cf15818d.tar.bz2 connman-424c620a3248b8850d839997d08336a7cf15818d.zip |
Remove now deprecated test scripts
Diffstat (limited to 'test')
-rwxr-xr-x | test/list-connections | 27 | ||||
-rwxr-xr-x | test/test-manager | 4 |
2 files changed, 1 insertions, 30 deletions
diff --git a/test/list-connections b/test/list-connections deleted file mode 100755 index 655e50a5..00000000 --- a/test/list-connections +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python - -import dbus - -bus = dbus.SystemBus() - -manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), - "org.moblin.connman.Manager") - -properties = manager.GetProperties() - -for path in properties["Connections"]: - connection = dbus.Interface(bus.get_object("org.moblin.connman", path), - "org.moblin.connman.Connection") - - properties = connection.GetProperties() - - print "[ %s ]" % (path) - - for key in properties.keys(): - if key in ["Strength", "Priority"]: - val = int(properties[key]) - else: - val = str(properties[key]) - print " %s = %s" % (key, val) - - print diff --git a/test/test-manager b/test/test-manager index 07e3d853..38df8da6 100755 --- a/test/test-manager +++ b/test/test-manager @@ -14,8 +14,6 @@ def print_properties(key, value): interface = "org.moblin.connman.Profile" elif key == "Devices": interface = "org.moblin.connman.Device" - elif key == "Connections": - interface = "org.moblin.connman.Connection" elif key == "Services": interface = "org.moblin.connman.Service" else: @@ -60,7 +58,7 @@ def print_properties(key, value): print " Services = [ %s]" % (list) for key in properties.keys(): - if key in ["Profiles", "Devices", "Connections", "Services"]: + if key in ["Profiles", "Devices", "Services"]: print_properties(key, properties[key]) elif key in ["AvailableTechnologies", "EnabledTechnologies", "ConnectedTechnologies", |