Add troubleshooting note to test failure output
[mudpy.git] / bin / test
index 25a171b..10ea7c4 100755 (executable)
--- a/bin/test
+++ b/bin/test
@@ -139,13 +139,16 @@ for test, description in dialogue:
         except:
             pass
         if index is not 0:
-            print("ERROR: luser%s did not receive expected string:\n\n%s"
-                  % (conversant, question))
+            print("ERROR: luser%s did not receive expected string:\n\n%s\n\n"
+                  "Check the end of capture_%s.log for received data."
+                  % (conversant, question, conversant))
             success = False
             break
         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[