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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7dfe4735
Commit
7dfe4735
authored
Jul 28, 2011
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #12726039 MTR SHOULD PROVIDE ABILITY TO DISABLE TEST ON SELECTED PLATFORMS
Add extra patterns to look for @<platform>
parent
c6e43700
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+21
-1
No files found.
mysql-test/lib/mtr_cases.pm
View file @
7dfe4735
...
@@ -317,10 +317,30 @@ sub collect_one_suite($)
...
@@ -317,10 +317,30 @@ sub collect_one_suite($)
my
%
disabled
;
my
%
disabled
;
if
(
open
(
DISABLED
,
"
$testdir
/disabled.def
"
)
)
if
(
open
(
DISABLED
,
"
$testdir
/disabled.def
"
)
)
{
{
# $^O on Windows considered not generic enough
my
$plat
=
(
IS_WINDOWS
)
?
'
windows
'
:
$^O
;
while
(
<
DISABLED
>
)
while
(
<
DISABLED
>
)
{
{
chomp
;
chomp
;
if
(
/^\s*(\S+)\s*:\s*(.*?)\s*$/
)
#diasble the test case if platform matches
if
(
/\@/
)
{
if
(
/\@$plat/
)
{
/^\s*(\S+)\s*\@$plat.*:\s*(.*?)\s*$/
;
$disabled
{
$1
}
=
$2
;
}
elsif
(
/\@!(\S*)/
)
{
if
(
$1
ne
$plat
)
{
/^\s*(\S+)\s*\@!.*:\s*(.*?)\s*$/
;
$disabled
{
$1
}
=
$2
;
}
}
}
elsif
(
/^\s*(\S+)\s*:\s*(.*?)\s*$/
)
{
{
$disabled
{
$1
}
=
$2
;
$disabled
{
$1
}
=
$2
;
}
}
...
...
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