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
6be5398f
Commit
6be5398f
authored
Nov 10, 2008
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#4189 Use only one worker for --record
parent
63891d63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+11
-4
No files found.
mysql-test/mysql-test-run.pl
View file @
6be5398f
...
@@ -196,6 +196,8 @@ my $opt_max_save_core= $ENV{MTR_MAX_SAVE_CORE} || 5;
...
@@ -196,6 +196,8 @@ my $opt_max_save_core= $ENV{MTR_MAX_SAVE_CORE} || 5;
my
$opt_max_save_datadir
=
$ENV
{
MTR_MAX_SAVE_DATADIR
}
||
20
;
my
$opt_max_save_datadir
=
$ENV
{
MTR_MAX_SAVE_DATADIR
}
||
20
;
my
$opt_max_test_fail
=
$ENV
{
MTR_MAX_TEST_FAIL
}
||
10
;
my
$opt_max_test_fail
=
$ENV
{
MTR_MAX_TEST_FAIL
}
||
10
;
my
$opt_parallel
=
$ENV
{
MTR_PARALLEL
};
select
(
STDOUT
);
select
(
STDOUT
);
$|
=
1
;
# Automatically flush STDOUT
$|
=
1
;
# Automatically flush STDOUT
...
@@ -211,10 +213,6 @@ sub main {
...
@@ -211,10 +213,6 @@ sub main {
# directly before it executes them, like "make test-force-pl" in RPM builds.
# directly before it executes them, like "make test-force-pl" in RPM builds.
mtr_report
("
Logging: $0
",
join
("
",
@ARGV
));
mtr_report
("
Logging: $0
",
join
("
",
@ARGV
));
my
$opt_parallel
=
$ENV
{
MTR_PARALLEL
};
Getopt::Long::
Configure
("
pass_through
");
GetOptions
('
parallel=i
'
=>
\
$opt_parallel
)
or
usage
(
0
,
"
Can't read options
");
command_line_setup
();
command_line_setup
();
if
(
$opt_gcov
)
{
if
(
$opt_gcov
)
{
...
@@ -712,6 +710,7 @@ sub set_vardir {
...
@@ -712,6 +710,7 @@ sub set_vardir {
}
}
sub
command_line_setup
{
sub
command_line_setup
{
my
$opt_comment
;
my
$opt_comment
;
my
$opt_usage
;
my
$opt_usage
;
...
@@ -731,6 +730,9 @@ sub command_line_setup {
...
@@ -731,6 +730,9 @@ sub command_line_setup {
'
compress
'
=>
\
$opt_compress
,
'
compress
'
=>
\
$opt_compress
,
'
vs-config
'
=>
\
$opt_vs_config
,
'
vs-config
'
=>
\
$opt_vs_config
,
# Max number of parallel threads to use
'
parallel=i
'
=>
\
$opt_parallel
,
# Config file to use as template for all tests
# Config file to use as template for all tests
'
defaults-file=s
'
=>
\&
collect_option
,
'
defaults-file=s
'
=>
\&
collect_option
,
# Extra config file to append to all generated configs
# Extra config file to append to all generated configs
...
@@ -1043,6 +1045,11 @@ sub command_line_setup {
...
@@ -1043,6 +1045,11 @@ sub command_line_setup {
mtr_error
("
Will not run in record mode without a specific test case
");
mtr_error
("
Will not run in record mode without a specific test case
");
}
}
if
(
$opt_record
)
{
# Use only one worker with --record
$opt_parallel
=
1
;
}
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Embedded server flag
# Embedded server flag
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
...
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