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
441bb13e
Commit
441bb13e
authored
Nov 01, 2007
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#27753 enable mysql-test-run.pl to ignore tests based on wildcard
- Fix problem in first implementation
parent
ec5ee6f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
mysql-test/lib/mtr_cases.pl
mysql-test/lib/mtr_cases.pl
+4
-6
No files found.
mysql-test/lib/mtr_cases.pl
View file @
441bb13e
...
...
@@ -32,16 +32,14 @@ my $skip_test;
sub
init_pattern
{
my
(
$from
,
$what
)
=
@_
;
if
(
$from
=~
/
[a-z0-9]
/
)
{
if
(
$from
=~
/
^[a-z0-9]$
/
)
{
# Does not contain any regex, make the pattern match
# beginning of string
$from
=
"
^
$from
";
}
else
{
# Check that pattern is a valid regex
eval
{
""
=~
/$from/
;
1
}
or
mtr_error
("
Invalid regex '
$from
' passed to
$what
\n
Perl says: $@
");
}
# Check that pattern is a valid regex
eval
{
""
=~
/$from/
;
1
}
or
mtr_error
("
Invalid regex '
$from
' passed to
$what
\n
Perl says: $@
");
return
$from
;
}
...
...
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