tests: Silence unnecessary get_driver_status() prints
Commit 53606b105c
('tests: Wait for scan
to complete on all interfaces in reset()') added option of passing
ifname to get_driver_status(). This could result in FAIL-NO-IFNAME-MATCH
returns that get printed out in "Ignore unexpected status-driver line"
messages if the interface is not found. Check for this case to avoid
that unnecessary print.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
85eb89fe56
commit
c0183847d9
1 changed files with 2 additions and 0 deletions
|
@ -362,6 +362,8 @@ class WpaSupplicant:
|
|||
res = self.request("STATUS-DRIVER")
|
||||
else:
|
||||
res = self.global_request("IFNAME=%s STATUS-DRIVER" % ifname)
|
||||
if res.startswith("FAIL"):
|
||||
return dict()
|
||||
lines = res.splitlines()
|
||||
vals = dict()
|
||||
for l in lines:
|
||||
|
|
Loading…
Reference in a new issue