Parcourir la source

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>
Jouni Malinen il y a 11 ans
Parent
commit
789959c493
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      tests/hwsim/run-tests.py

+ 4 - 1
tests/hwsim/run-tests.py

@@ -20,7 +20,10 @@ from hostapd import HostapdGlobal
 def reset_devs(dev, apdev):
     hapd = HostapdGlobal()
     for d in dev:
-        d.reset()
+        try:
+            d.reset()
+        except Exception, e:
+            logger.info("Failed to reset device " + d.ifname)
     for ap in apdev:
         hapd.remove(ap['ifname'])