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
39b1dbc4
Commit
39b1dbc4
authored
Feb 06, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make %suites hash local to mtr_cases.pm
parent
6d48dfae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+8
-7
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+3
-5
No files found.
mysql-test/lib/mtr_cases.pm
View file @
39b1dbc4
...
...
@@ -66,6 +66,7 @@ require "mtr_misc.pl";
my
$do_test_reg
;
my
$skip_test_reg
;
my
%
suites
;
my
$default_suite_object
=
do
'
My/Suite.pm
';
sub
init_pattern
{
...
...
@@ -317,11 +318,11 @@ sub collect_one_suite
#
# Load the Suite object
#
unless
(
$
::
suites
{
$suite
})
{
unless
(
$suites
{
$suite
})
{
if
(
-
f
"
$suitedir
/suite.pm
")
{
$
::
suites
{
$suite
}
=
do
"
$suitedir
/suite.pm
";
$suites
{
$suite
}
=
do
"
$suitedir
/suite.pm
";
}
else
{
$
::
suites
{
$suite
}
=
$default_suite_object
;
$suites
{
$suite
}
=
$default_suite_object
;
}
}
...
...
@@ -377,7 +378,7 @@ sub collect_one_suite
my
@case_names
;
{
my
$s
=
$
::
suites
{
$suite
};
my
$s
=
$suites
{
$suite
};
$s
=
'
My::Suite
'
unless
ref
$s
;
@case_names
=
$s
->
list_cases
(
$testdir
);
}
...
...
@@ -712,7 +713,7 @@ sub collect_one_test_case {
name
=>
"
$suitename
.
$tname
",
shortname
=>
$tname
,
path
=>
"
$testdir
/
$filename
",
suite
=>
$suite
name
,
suite
=>
$suite
s
{
$suitename
}
,
);
my
$result_file
=
"
$resdir
/
$tname
.result
";
...
...
@@ -947,10 +948,10 @@ sub collect_one_test_case {
$tinfo
->
{
template_path
}
=
$config
;
}
if
(
not
ref
$
::suites
{
$tinfo
->
{
suite
}
})
if
(
not
ref
$
suites
{
$suitename
})
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
comment
'}
=
$
::suites
{
$tinfo
->
{
suite
}
};
$tinfo
->
{'
comment
'}
=
$
suites
{
$suitename
};
return
$tinfo
;
}
...
...
mysql-test/mysql-test-run.pl
View file @
39b1dbc4
...
...
@@ -342,8 +342,6 @@ our $debug_compiled_binaries;
our
%
mysqld_variables
;
our
%
suites
;
my
$source_dist
=
0
;
my
$opt_max_save_core
=
env_or_val
(
MTR_MAX_SAVE_CORE
=>
5
);
...
...
@@ -4074,7 +4072,7 @@ sub config_files($) {
my
(
$tinfo
)
=
@_
;
(
'
my.cnf
'
=>
\&
mycnf_create
,
$
suites
{
$tinfo
->
{
suite
}
}
->
config_files
()
$
tinfo
->
{
suite
}
->
config_files
()
);
}
...
...
@@ -4105,7 +4103,7 @@ sub fix_servers($) {
SORT
=>
220
,
START
=>
undef
,
},
$
suites
{
$tinfo
->
{
suite
}
}
->
servers
()
$
tinfo
->
{
suite
}
->
servers
()
);
for
(
$config
->
groups
())
{
while
(
my
(
$re
,
$prop
)
=
each
%
servers
)
{
...
...
@@ -4324,7 +4322,7 @@ sub run_testcase ($$) {
return
1
;
}
my
$test
=
$
suites
{
$tinfo
->
{
suite
}
}
->
start_test
(
$tinfo
);
my
$test
=
$
tinfo
->
{
suite
}
->
start_test
(
$tinfo
);
# Set only when we have to keep waiting after expectedly died server
my
$keep_waiting_proc
=
0
;
...
...
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