Skip to content

Commit f217c76

Browse files
committed
mtr: fix --source lines detection
mysqltest allows leading spaces before `--`, so mtr should too
1 parent 6789f2c commit f217c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql-test/lib/mtr_cases.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ sub get_tags_from_file($$) {
10361036
}
10371037

10381038
# Check for a sourced include file.
1039-
if ($line =~ /^(--)?[[:space:]]*source[[:space:]]+([^;[:space:]]+)/)
1039+
if ($line =~ /^[[:space:]]*(--)?[[:space:]]*source[[:space:]]+([^;[:space:]]+)/)
10401040
{
10411041
my $include= $2;
10421042
# The rules below must match open_file() function of mysqltest.cc

0 commit comments

Comments
 (0)