Re: [patch] make apitest more useful
Marcel Holtmann <[email protected]>
| Newsgroups | gmane.linux.bluez.devel |
|---|---|
| Message-ID | <1204899369.28006.2.camel@californication> |
Hi Stefan, > This trivial 2-character patch makes apitest much more useful by allowing > stuff like "apitest -l DiscoverDevices" to work like i'd expect it to: > > --- /usr/bin/apitest 2008-03-02 19:22:20.000000000 +0100 > +++ /home/seife/bin/apitest.seife 2008-03-06 19:44:52.000000000 +0100 > @@ -415,7 +415,7 @@ class Tester: > self.dbus_dev_sig_setup() > print 'Listening for events...' > > - elif self.cmd in mgr_cmds: > + if self.cmd in mgr_cmds: > try: > self.dbus_mgr_setup() > except dbus.DBusException, e: > > > Now we can alias "hcitool scan" to "apitest -l DiscoverDevices" ;-) the apitest is really only a test program, but I applied the patch neverless. Regards Marcel ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/