mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
tests: Report unexpected STATUS lines instead of stopping
It looks like get_status() has failed in some test runs because of a STATUS command returning an line without '=' on it. Instead of stopping there on exception, report the unexpected line in the log and ignore it to allow test to continue. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
ca5b81a5bb
commit
e01929c668
@ -241,8 +241,11 @@ class WpaSupplicant:
|
||||
lines = res.splitlines()
|
||||
vals = dict()
|
||||
for l in lines:
|
||||
[name,value] = l.split('=', 1)
|
||||
vals[name] = value
|
||||
try:
|
||||
[name,value] = l.split('=', 1)
|
||||
vals[name] = value
|
||||
except ValueError, e:
|
||||
logger.info(self.ifname + ": Ignore unexpected STATUS line: " + l)
|
||||
return vals
|
||||
|
||||
def get_status_field(self, field):
|
||||
|
Loading…
Reference in New Issue
Block a user