From: Jeremy Stanley Date: Mon, 7 Mar 2016 13:16:38 +0000 (+0000) Subject: Check that functional tests log no errors X-Git-Tag: 0.0.1~193 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=0cda64117ac0b79b8c8f16a37ec3f9316f4c4d16;p=mudpy.git Check that functional tests log no errors After all other functional tests, check the output of show log 7 to make sure that no earlier tests caused errors at or above that loglevel. --- diff --git a/bin/test b/bin/test index 62a6202..37e8100 100755 --- a/bin/test +++ b/bin/test @@ -162,6 +162,11 @@ test_show_log = ( "[0-9]+\. The matching lines\r\nfrom [0-9]+ to [0-9]+ are:", ""), ) +test_log_no_errors = ( + (2, "> ", "show log 7"), + (2, "None of the [0-9]+ lines in memory matches your request\.", ""), +) + dialogue = ( (test_account0_setup, "first account setup"), (test_account1_setup, "second account setup"), @@ -178,6 +183,7 @@ dialogue = ( (test_admin_restriction, "restricted admin commands"), (test_admin_help, "admin help"), (test_show_log, "show log"), + (test_log_no_errors, "no errors logged"), ) captures = ["", "", ""]