eiwd

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

commit 6e608b14f5bc69b8a2ec9b9a0e3d12389ba916d2
parent 327f719f912463c6d0b1b06dd19353c32452cea9
Author: James Prestwood <prestwoj@gmail.com>
Date:   Mon, 28 Mar 2022 10:28:33 -0700

auto-t: iwd.py: fix full_scan argument

This was not being properly honored when existing networks were
already populated. This poses an issue for any test which uses
full_scan after setting radio values such as signal strength.

Diffstat:
Mautotests/util/iwd.py | 23++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py @@ -492,17 +492,18 @@ class Device(IWDDBusAbstract): main sorting factor. ''' ordered_networks = [] - for bus_obj in self._station.GetOrderedNetworks(): - ordered_network = OrderedNetwork(bus_obj, self._bus, self._namespace) - ordered_networks.append(ordered_network) - - names = [x.name for x in ordered_networks] - - # all() will always return true if 'list' is empty - if all(x in names for x in list) and len(names) > 0: - return ordered_networks - elif not scan_if_needed: - return None + if not full_scan: + for bus_obj in self._station.GetOrderedNetworks(): + ordered_network = OrderedNetwork(bus_obj, self._bus, self._namespace) + ordered_networks.append(ordered_network) + + names = [x.name for x in ordered_networks] + + # all() will always return true if 'list' is empty + if all(x in names for x in list) and len(names) > 0: + return ordered_networks + elif not scan_if_needed: + return None condition = 'not obj.scanning' IWD._wait_for_object_condition(self, condition)