OSDN Git Service

test: Fix obexd object path in test scripts
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Dec 2012 07:42:45 +0000 (09:42 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Dec 2012 07:42:45 +0000 (09:42 +0200)
test/exchange-business-cards
test/ftp-client
test/get-obex-capabilities
test/list-folders
test/map-client
test/opp-client
test/pbap-client
test/simple-obex-agent

index 9271fdf..6805cf7 100755 (executable)
@@ -4,7 +4,7 @@ import sys
 import dbus
 
 bus = dbus.SessionBus()
-client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
+client = dbus.Interface(bus.get_object("org.bluez.obex", "/org/bluez/obex"),
                                        "org.bluez.obex.Client")
 
 if (len(sys.argv) < 4):
index e1a051b..f604c25 100755 (executable)
@@ -151,8 +151,9 @@ if  __name__ == '__main__':
        bus = dbus.SessionBus()
        mainloop = gobject.MainLoop()
 
-       client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
-                               "org.bluez.obex.Client")
+       client = dbus.Interface(bus.get_object("org.bluez.obex",
+                                               "/org/bluez/obex"),
+                                               "org.bluez.obex.Client")
 
        print "Creating Session"
        path = client.CreateSession(options.device, { "Target": "ftp" })
index 3fdf8e8..e8afbad 100755 (executable)
@@ -4,7 +4,7 @@ import sys
 import dbus
 
 bus = dbus.SessionBus()
-client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
+client = dbus.Interface(bus.get_object("org.bluez.obex", "/org/bluez/obex"),
                                        "org.bluez.obex.Client")
 
 if (len(sys.argv) < 3):
index 2203feb..7321a15 100755 (executable)
@@ -6,8 +6,9 @@ import dbus
 
 def list_folder(folder):
        bus = dbus.SessionBus()
-       client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
-                               "org.bluez.obex.Client")
+       client = dbus.Interface(bus.get_object("org.bluez.obex",
+                                               "/org/bluez/obex"),
+                                               "org.bluez.obex.Client")
 
        path = client.CreateSession(sys.argv[1], { "Target": "ftp" })
 
index 9a9dff2..e29e6e4 100755 (executable)
@@ -166,8 +166,9 @@ if  __name__ == '__main__':
        bus = dbus.SessionBus()
        mainloop = gobject.MainLoop()
 
-       client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
-                               "org.bluez.obex.Client")
+       client = dbus.Interface(bus.get_object("org.bluez.obex",
+                                               "/org/bluez/obex"),
+                                               "org.bluez.obex.Client")
 
        print "Creating Session"
        path = client.CreateSession(options.device, { "Target": "map" })
index cb0a683..b26a81c 100755 (executable)
@@ -104,8 +104,9 @@ if  __name__ == '__main__':
        bus = dbus.SessionBus()
        mainloop = gobject.MainLoop()
 
-       client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
-                               "org.bluez.obex.Client")
+       client = dbus.Interface(bus.get_object("org.bluez.obex",
+                                               "/org/bluez/obex"),
+                                               "org.bluez.obex.Client")
 
        print "Creating Session"
        path = client.CreateSession(options.device, { "Target": "OPP" })
index ac7b28b..0a81cbc 100755 (executable)
@@ -98,8 +98,9 @@ if  __name__ == '__main__':
        bus = dbus.SessionBus()
        mainloop = gobject.MainLoop()
 
-       client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
-                               "org.bluez.obex.Client")
+       client = dbus.Interface(bus.get_object("org.bluez.obex",
+                                               "/org/bluez/obex"),
+                                               "org.bluez.obex.Client")
 
        if (len(sys.argv) < 2):
                print "Usage: %s <device>" % (sys.argv[0])
index 1902082..3247079 100755 (executable)
@@ -97,7 +97,8 @@ if __name__ == '__main__':
        dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 
        bus = dbus.SessionBus()
-       manager = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
+       manager = dbus.Interface(bus.get_object("org.bluez.obex",
+                                               "/org/bluez/obex"),
                                                "org.bluez.obex.Manager")
        bus.add_signal_receiver(new_transfer,
                                dbus_interface="org.bluez.obex.Manager",