From e07b77c03e70302051d9f6b31f159dd6d3f97338 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 19 Dec 2009 18:50:18 -0800 Subject: [PATCH] Remove deprecated test script for connection interface --- Makefile.am | 2 +- test/monitor-services | 2 +- test/select-connection | 23 ----------------------- 3 files changed, 2 insertions(+), 25 deletions(-) delete mode 100755 test/select-connection diff --git a/Makefile.am b/Makefile.am index 661fe1e..aced7f1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -123,7 +123,7 @@ endif test_scripts = test/get-state test/list-profiles test/list-services \ test/connect-service test/monitor-services \ - test/select-connection test/list-devices test/enable-device \ + test/list-devices test/enable-device \ test/disable-device test/start-scanning test/list-networks \ test/set-passphrase test/set-address test/test-profile \ test/simple-agent test/show-introspection test/test-compat \ diff --git a/test/monitor-services b/test/monitor-services index a334d99..c435a34 100755 --- a/test/monitor-services +++ b/test/monitor-services @@ -11,7 +11,7 @@ def property_changed(name, value, path, interface): if iface not in ["Service"]: return if name in ["Profiles", "Services", "Providers", - "Devices", "Networks", "Connections"]: + "Devices", "Networks"]: val = "[" for i in value: val = val + " " + i[i.rfind("/") + 1:] diff --git a/test/select-connection b/test/select-connection deleted file mode 100755 index 34d1f93..0000000 --- a/test/select-connection +++ /dev/null @@ -1,23 +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() - - if (properties["Default"] == dbus.Boolean(1)): - continue - - print "[ %s ]" % (path) - - connection.SetProperty("Default", dbus.Boolean(1)) -- 2.7.4