summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-07-03 16:32:56 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-07-03 17:51:14 +0300
commitc5a19dde4762f0a8d08ee01185ae907ab595e568 (patch)
tree964082a51ce3ce82ad99e9246642cd959a949bfc /test
parente6099e4536e1d4b2d594ea6ec062f670dfdeef1e (diff)
downloadbluez-c5a19dde4762f0a8d08ee01185ae907ab595e568.tar.gz
test: Allow to pass custom DataType to test-health-sink
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-health-sink6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-health-sink b/test/test-health-sink
index 2343a23cf..37e630a21 100755
--- a/test/test-health-sink
+++ b/test/test-health-sink
@@ -23,9 +23,13 @@ loop = GObject.MainLoop()
bus = dbus.SystemBus()
+type = 4103
+if len(sys.argv) > 1:
+ type = int(sys.argv[1])
+
hdp_manager = dbus.Interface(bus.get_object(BUS_NAME, PATH),
HEALTH_MANAGER_INTERFACE)
-app_path = hdp_manager.CreateApplication({"DataType": dbus.types.UInt16(4103),
+app_path = hdp_manager.CreateApplication({"DataType": dbus.types.UInt16(type),
"Role": "sink"})
print(app_path)