From 1736b09e70f22f08ba467a964d20f4f098115a13 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 26 Oct 2022 22:40:32 -0500 Subject: [PATCH] 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. --- testsuite/lib/gatekeeper.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1