Adjust pattern in testsuite
authorJacob Bachmeyer <jcb@gnu.org>
Thu, 27 Oct 2022 03:40:32 +0000 (22:40 -0500)
committerJacob Bachmeyer <jcb@gnu.org>
Thu, 27 Oct 2022 03:40:32 +0000 (22:40 -0500)
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.

testsuite/lib/gatekeeper.exp

index 4bddcee8e094098adae2f37bd354bd393f43ceb8..38e996c98bbdf1823a3aab8d56c094d654b726d8 100644 (file)
@@ -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