From: Jeremy Stanley Date: Sun, 6 Sep 2015 18:18:58 +0000 (+0000) Subject: Break outer loop of functional tests on failure X-Git-Tag: 0.0.1~206 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=6472ff738a71f4a65f7b67c31e75104f6e85da4f;p=mudpy.git 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. --- 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[