eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit e8031bab2a3058a59515b1b57a5ef7f194aaca43
parent 5525f32cddac73f908f2b0ce7e7c769bd5f2b444
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 17 Dec 2020 11:36:06 -0800

test-runner: add wait_for_dbus_service

Common API to wait for a DBus service to appear on the bus

Diffstat:
Mtools/test-runner | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/tools/test-runner b/tools/test-runner @@ -616,6 +616,15 @@ class Namespace: return False + def wait_for_dbus_service(self, service): + tries = 0 + + while not self._bus.name_has_owner(service): + if tries > 200: + raise TimeoutError('DBus service %s did not appear', service) + tries += 1 + sleep(0.1) + def __str__(self): ret = 'Namespace: %s\n' % self.name ret += 'Processes:\n'