diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 8d0bb5b29..e4788ac36 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -308,7 +308,11 @@ class WpaSupplicant: lines = res.splitlines() vals = dict() for l in lines: - [name,value] = l.split('=', 1) + try: + [name,value] = l.split('=', 1) + except ValueError: + logger.info(self.ifname + ": Ignore unexpected status line: " + l) + continue vals[name] = value return vals @@ -323,7 +327,11 @@ class WpaSupplicant: lines = res.splitlines() vals = dict() for l in lines: - [name,value] = l.split('=', 1) + try: + [name,value] = l.split('=', 1) + except ValueError: + logger.info(self.ifname + ": Ignore unexpected status-driver line: " + l) + continue vals[name] = value return vals