summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-11-30 15:05:47 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-11-30 15:05:47 +0200
commitca2f14cd102de637540290a8125069060eac6162 (patch)
tree361e9dbf9d659c8a6cbf42c1e64a11e256fb9bce /test
parent21589560a50dfc9015e33c886a9ed3c38c64659e (diff)
downloadbluez-ca2f14cd102de637540290a8125069060eac6162.tar.gz
test: Check for correct interface in test-thermometer
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-thermometer2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-thermometer b/test/test-thermometer
index d56a8b2d0..e14a3450a 100755
--- a/test/test-thermometer
+++ b/test/test-thermometer
@@ -30,6 +30,8 @@ class Watcher(dbus.service.Object):
print("Type: ", measure["Type"])
def properties_changed(interface, changed, invalidated):
+ if interface != "org.bluez.Thermometer":
+ return
for name, value in changed.iteritems():
print("Property %s changed: %s" % (name, str(value)))