[PATCH 2/2] test: Allow to pass custom DataType to test-health-sink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 test/test-health-sink | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/test-health-sink b/test/test-health-sink
index 2343a23..37e630a 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)
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux