From: Jouni Malinen Date: Sat, 24 Aug 2013 18:16:04 +0000 (+0300) Subject: tests: Continue even if device reset fails X-Git-Tag: aosp-kk-from-upstream~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=789959c493be73ea84a4cb018e8f889910c6e1f8;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index bf08a5530..51cad6d39 100755 --- a/tests/hwsim/run-tests.py +++ b/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'])