From 40f8643234534c84bc55650cb2e542e24556e820 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Lowas-Rzechonek?= Date: Tue, 26 Nov 2019 15:53:59 +0100 Subject: [PATCH] mesh: Fix test-join to include mandatory VendorModels property Change-Id: I61cb48d751a7049ca17c0b85a74a8dd693f8ab5f Signed-off-by: Abhay Agarwal --- test/test-join | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/test/test-join b/test/test-join index cdf92a2..079f711 100644 --- a/test/test-join +++ b/test/test-join @@ -232,11 +232,25 @@ class Element(dbus.service.Object): ids.append(id) return ids + def _get_v_models(self): + ids = [] + for model in self.models: + id = model.get_id() + v = model.get_vendor() + if v != VENDOR_ID_NONE: + vendor_id = (v, id) + ids.append(vendor_id) + return ids + def get_properties(self): + vendor_models = self._get_v_models() + sig_models = self._get_sig_models() + return { MESH_ELEMENT_IFACE: { 'Index': dbus.Byte(self.index), - 'Models': dbus.Array(self._get_sig_models(), 'q') + 'Models': dbus.Array(sig_models, 'q'), + 'VendorModels': dbus.Array(vendor_models, '(qq)'), } } -- 2.7.4