From: Jouni Malinen Date: Sun, 20 Oct 2013 16:14:41 +0000 (+0300) Subject: tests: Stop test run on NOTE command failure X-Git-Tag: hostap_2_1~820 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d93a2407312ea354ad0a503865f11fb6a93127f5;p=thirdparty%2Fhostap.git tests: Stop test run on NOTE command failure There is no point trying to go through a test case if the NOTE command to write TEST-START entry does not succeed. This avoids some excessive waits on buildbot trying to forcefully kill the programs on its timeout if wpa_supplicant gets stuck waiting for something (like the current issue with libnl events and commands having a chance of hitting a blocking wait on netlink messages). Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 8acd41aaf..8a4c9f036 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -124,6 +124,8 @@ def main(): except Exception, e: logger.info("Failed to issue TEST-START before " + t.__name__ + " for " + d.ifname) logger.info(e) + print "FAIL " + t.__name__ + " - could not start test" + sys.exit(1) try: if t.func_code.co_argcount > 1: res = t(dev, apdev)