summaryrefslogtreecommitdiffstats
path: root/hcid/test-adapter
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-03-14 23:24:18 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-03-14 23:24:18 +0000
commit9102bc7c0b8194d8653a18ac52e26d2e1b2d2936 (patch)
tree840b68bd311acd9d17eb7d7a73709cb14deacae5 /hcid/test-adapter
parent6919f96ac5f419f9756157a02f9a0d391896243e (diff)
Fail with error on unknown commands
Diffstat (limited to 'hcid/test-adapter')
-rwxr-xr-xhcid/test-adapter3
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/test-adapter b/hcid/test-adapter
index aab98dd2..e7770c0f 100755
--- a/hcid/test-adapter
+++ b/hcid/test-adapter
@@ -70,3 +70,6 @@ if (sys.argv[1] == "periodicdiscovery"):
value = dbus.Boolean(sys.argv[2])
adapter.SetProperty("PeriodicDiscovery", value)
sys.exit(0)
+
+print "Unknown command"
+sys.exit(1)