Break outer loop of functional tests on failure
authorJeremy Stanley <fungi@yuggoth.org>
Sun, 6 Sep 2015 18:18:58 +0000 (18:18 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sun, 6 Sep 2015 18:18:58 +0000 (18:18 +0000)
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

index 25a171b..cf90a6c 100755 (executable)
--- 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[