From 6472ff738a71f4a65f7b67c31e75104f6e85da4f Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sun, 6 Sep 2015 18:18:58 +0000 Subject: [PATCH] Break outer loop of functional tests on failure When a test failure is encountered in the inner loop of functional tests, also break out of the outer loop so that subsequent tests are not run. --- bin/test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/test b/bin/test index 25a171b..cf90a6c 100755 --- a/bin/test +++ b/bin/test @@ -146,6 +146,8 @@ for test, description in dialogue: print("luser%s sending: %s" % (conversant, answer)) lusers[conversant].write(("%s\r\n" % answer).encode("utf-8")) captures[conversant] += "%s\r\n" % answer + if not success: + break for conversant in range(len(captures)): try: captures[conversant] += lusers[ -- 2.11.0