From 3f4a29651eda833b9689abed071d125d2c772f26 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 22 Nov 2024 07:15:39 -0800 Subject: [PATCH] auto-t: always initialize StationDebug in Device class Since IWD doesn't utilize DBus signals in "normal" operations its fine to lazy initialize any of the DBus interfaces since properties can be obtained as needed with Get/GetAll. For test-runner though StationDebug uses signals for debug events and until the StationDebug class is initialized (via a method call or property access) all signals will be lost. Fix this by always initializing the StationDebug interface when a Device class is initialized. --- autotests/util/iwd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py index e9101d75..9091807a 100755 --- a/autotests/util/iwd.py +++ b/autotests/util/iwd.py @@ -450,13 +450,15 @@ class Device(IWDDBusAbstract): self._wps_manager_if = None self._station_if = None self._station_props = None - self._station_debug_obj = None self._dpp_obj = None self._sc_dpp_obj = None self._ap_obj = None IWDDBusAbstract.__init__(self, *args, **kwargs) + self._station_debug_obj = StationDebug(object_path=self._object_path, + namespace=self._namespace) + @property def _wps_manager(self): if self._wps_manager_if is None: