Try all technologies from start-scanning test script
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Jul 2010 16:09:17 +0000 (18:09 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 26 Jul 2010 16:10:51 +0000 (18:10 +0200)
test/start-scanning

index b8e5229..e3bac28 100755 (executable)
@@ -23,8 +23,10 @@ for path in properties["Technologies"]:
                for path in properties["Devices"]:
                        device = dbus.Interface(bus.get_object('org.moblin.connman', path),
                                                                'org.moblin.connman.Device')
-
-                       device.ProposeScan()
+                       try:
+                               device.ProposeScan()
+                       except dbus.DBusException, error:
+                               print "   %s: %s" % (error._dbus_error_name, error.message)
        else:
                print "   No scanning"