eiwd

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

commit cbe454a46a4d8c89ab5a7c82526994d0c7bed4fa
parent eb84b2a6e855c6b6c032ec33a5d157acfb4a2c5f
Author: James Prestwood <prestwoj@gmail.com>
Date:   Tue,  4 Jan 2022 10:18:52 -0800

auto-t: wpas.py: don't require strict match on wait_for_event

wait_for_event was checking the event string presence in the rx_data
array which meant the event string had to match perfectly to any
received events. This poses problems with events that include additional
information which the caller may not be able to know or does not care
about. For example:

DPP-RX src=02:00:00:00:02:00 freq=2437 type=11

Waiting for this event previously would require the caller know src, freq,
and type. If the caller only wants to wait for DPP-RX, it can now do that.

Diffstat:
Mautotests/util/wpas.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/autotests/util/wpas.py b/autotests/util/wpas.py @@ -70,9 +70,10 @@ class Wpas: while True: context.iteration(may_block=True) - if event in self._rx_data: - GLib.source_remove(timeout) - return self._rx_data + for e in self._rx_data: + if event in e: + GLib.source_remove(timeout) + return self._rx_data if self._wait_timed_out: raise TimeoutError('waiting for wpas event timed out')