summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-24 16:27:51 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-11-24 16:27:51 -0300
commit0b6b1da0dd654d32873aacf81791c58316b377e3 (patch)
treecf9c1f07ad3407fb86cf4ba5ebfd4edb9b34d681 /test
parent20f5afea0c1c0fd75e9085ca8cf2066fd281f6b6 (diff)
Add discovering option to test-adapter.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-adapter6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-adapter b/test/test-adapter
index e7c8640a..3645cb09 100755
--- a/test/test-adapter
+++ b/test/test-adapter
@@ -21,6 +21,7 @@ if (len(sys.argv) < 2):
print " pairable [on/off]"
print " discoverable [on/off]"
print " discoverabletimeout [timeout]"
+ print " discovering"
sys.exit(1)
if (sys.argv[1] == "address"):
@@ -88,5 +89,10 @@ if (sys.argv[1] == "discoverabletimeout"):
adapter.SetProperty("DiscoverableTimeout", timeout)
sys.exit(0)
+if (sys.argv[1] == "discovering"):
+ properties = adapter.GetProperties()
+ print properties["Discovering"]
+ sys.exit(0)
+
print "Unknown command"
sys.exit(1)