Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
743b8d0f
Commit
743b8d0f
authored
Mar 10, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look for sourced file relative to test first
parent
c7f2d6ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+12
-6
No files found.
mysql-test/lib/mtr_cases.pm
View file @
743b8d0f
...
...
@@ -1004,13 +1004,19 @@ sub tags_from_test_file {
$value
=~
s/^\s+//
;
# Remove leading space
$value
=~
s/[[:space:]]+$//
;
# Remove ending space
my
$sourced_file
=
"
$::glob_mysql_test_dir/
$value
";
if
(
-
f
$sourced_file
)
# Sourced file may exist relative to test or
# in global location
foreach
my
$sourced_file
(
dirname
(
$file
)
.
"
/
$value
",
"
$::glob_mysql_test_dir/
$value
")
{
# Only source the file if it exists, we may get
# false positives in the regexes above if someone
# writes "source nnnn;" in a test case(such as mysqltest.test)
tags_from_test_file
(
$tinfo
,
$sourced_file
);
if
(
-
f
$sourced_file
)
{
# Only source the file if it exists, we may get
# false positives in the regexes above if someone
# writes "source nnnn;" in a test case(such as mysqltest.test)
tags_from_test_file
(
$tinfo
,
$sourced_file
);
last
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment