From 789959c493be73ea84a4cb018e8f889910c6e1f8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 24 Aug 2013 21:16:04 +0300 Subject: [PATCH] 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 --- tests/hwsim/run-tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'])