From: Jacob Bachmeyer Date: Thu, 27 Oct 2022 03:40:32 +0000 (-0500) Subject: Adjust pattern in testsuite X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1736b09e70f22f08ba467a964d20f4f098115a13;p=gatekeeper.git Adjust pattern in testsuite An empty "directory" element is considered invalid, but results in the message "invalid directory" with no following text. This was hidden by another issue with the main code, where a failure in parse_directory_line would add the complete contents of the directive to the message. --- diff --git a/testsuite/lib/gatekeeper.exp b/testsuite/lib/gatekeeper.exp index 4bddcee..38e996c 100644 --- a/testsuite/lib/gatekeeper.exp +++ b/testsuite/lib/gatekeeper.exp @@ -622,7 +622,7 @@ proc analyze_log { base_dir name assess } { # TODO: This should be validate,package-no-email instead. -re {^gatekeeper\[[0-9]+\]: \(Test\)\ - invalid directory[^\r\n]+} { + invalid directory[^\r\n]*} { # from parse_directory_line, when the pattern match fails set A(validate,bad-directory) 1 exp_continue