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.
# 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