tests: Continue even if device reset fails
This may provide better testing coverage by allowing temporary issues during the test cycle to be ignored. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
0c43a982c7
commit
789959c493
1 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,10 @@ from hostapd import HostapdGlobal
|
||||||
def reset_devs(dev, apdev):
|
def reset_devs(dev, apdev):
|
||||||
hapd = HostapdGlobal()
|
hapd = HostapdGlobal()
|
||||||
for d in dev:
|
for d in dev:
|
||||||
|
try:
|
||||||
d.reset()
|
d.reset()
|
||||||
|
except Exception, e:
|
||||||
|
logger.info("Failed to reset device " + d.ifname)
|
||||||
for ap in apdev:
|
for ap in apdev:
|
||||||
hapd.remove(ap['ifname'])
|
hapd.remove(ap['ifname'])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue