Add troubleshooting note to test failure output
authorJeremy Stanley <fungi@yuggoth.org>
Mon, 7 Sep 2015 03:13:31 +0000 (03:13 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Mon, 7 Sep 2015 03:13:31 +0000 (03:13 +0000)
When a functional test failure is encountered, recommend the
corresponding log to check for the actual output when an expected
match is not found.

bin/test

index cf90a6c..10ea7c4 100755 (executable)
--- a/bin/test
+++ b/bin/test
@@ -139,8 +139,9 @@ 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))