Commit f217c761 authored by Sergei Golubchik's avatar Sergei Golubchik

mtr: fix --source lines detection

mysqltest allows leading spaces before `--`, so mtr should too
parent 6789f2cf
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment