commit ae4b361f796eb98e835cb332e26d5594a92b281d
parent 2e5f7404c0f3d8a1e15ab159a816382d840302fe
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Thu, 7 May 2020 12:20:21 -0700
auto-t: Return None instead of empty known net list
To match the original behavior of get_ordered_networks,
return None for the empty list of known networks after the scan
is complete
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
@@ -395,7 +395,10 @@ class Device(IWDDBusAbstract):
ordered_network = OrderedNetwork(bus_obj)
ordered_networks.append(ordered_network)
- return ordered_networks
+ if len(ordered_networks) > 0:
+ return ordered_networks
+
+ return None
def get_ordered_network(self, network, scan_if_needed = False):
'''Returns a single network from ordered network call, or None if the