mtr: fix --source lines detection
mysqltest allows leading spaces before `--`, so mtr should too
This commit is contained in:
parent
6789f2cfab
commit
f217c76189
@ -1036,7 +1036,7 @@ sub get_tags_from_file($$) {
|
||||
}
|
||||
|
||||
# Check for a sourced include file.
|
||||
if ($line =~ /^(--)?[[:space:]]*source[[:space:]]+([^;[:space:]]+)/)
|
||||
if ($line =~ /^[[:space:]]*(--)?[[:space:]]*source[[:space:]]+([^;[:space:]]+)/)
|
||||
{
|
||||
my $include= $2;
|
||||
# The rules below must match open_file() function of mysqltest.cc
|
||||
|
Loading…
x
Reference in New Issue
Block a user