mtr: fix --source lines detection

mysqltest allows leading spaces before `--`, so mtr should too
This commit is contained in:
Sergei Golubchik 2022-02-21 18:16:17 +01:00
parent 6789f2cfab
commit f217c76189

View File

@ -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