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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2013-10-20 19:14:41 +03:00
parent 73b54d63fc
commit d93a240731

View file

@ -124,6 +124,8 @@ def main():
except Exception, e: except Exception, e:
logger.info("Failed to issue TEST-START before " + t.__name__ + " for " + d.ifname) logger.info("Failed to issue TEST-START before " + t.__name__ + " for " + d.ifname)
logger.info(e) logger.info(e)
print "FAIL " + t.__name__ + " - could not start test"
sys.exit(1)
try: try:
if t.func_code.co_argcount > 1: if t.func_code.co_argcount > 1:
res = t(dev, apdev) res = t(dev, apdev)