From c5a19dde4762f0a8d08ee01185ae907ab595e568 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 3 Jul 2014 16:32:56 +0200 Subject: [PATCH] test: Allow to pass custom DataType to test-health-sink --- 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 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) -- 2.11.0