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
e5966457
Commit
e5966457
authored
Apr 28, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit number of test failures before aborting
parent
7c5605a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+15
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
e5966457
...
@@ -199,6 +199,7 @@ my $source_dist= 0;
...
@@ -199,6 +199,7 @@ my $source_dist= 0;
my
$opt_max_save_core
=
$ENV
{
MTR_MAX_SAVE_CORE
}
||
5
;
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
;
select
(
STDOUT
);
select
(
STDOUT
);
$|
=
1
;
# Automatically flush STDOUT
$|
=
1
;
# Automatically flush STDOUT
...
@@ -347,6 +348,7 @@ sub run_test_server {
...
@@ -347,6 +348,7 @@ sub run_test_server {
my
$num_saved_cores
=
0
;
# Number of core files saved in vardir/log/ so far.
my
$num_saved_cores
=
0
;
# Number of core files saved in vardir/log/ so far.
my
$num_saved_datadir
=
0
;
# Number of datadirs saved in vardir/log/ so far.
my
$num_saved_datadir
=
0
;
# Number of datadirs saved in vardir/log/ so far.
my
$num_failed_test
=
0
;
# Number of tests failed so far
# Scheduler variables
# Scheduler variables
my
$max_ndb
=
$opt_parallel
/
2
;
my
$max_ndb
=
$opt_parallel
/
2
;
...
@@ -442,6 +444,14 @@ sub run_test_server {
...
@@ -442,6 +444,14 @@ sub run_test_server {
push
(
@$completed
,
$result
);
push
(
@$completed
,
$result
);
return
$completed
;
return
$completed
;
}
}
elsif
(
$num_failed_test
>
0
and
$num_failed_test
>=
$opt_max_test_fail
)
{
$suite_timeout_proc
->
kill
();
mtr_report
("
Too many tests(
$num_failed_test
) failed!
",
"
Terminating...
");
return
undef
;
}
$num_failed_test
++
;
}
}
# Retry test run after test failure
# Retry test run after test failure
...
@@ -719,6 +729,7 @@ sub command_line_setup {
...
@@ -719,6 +729,7 @@ sub command_line_setup {
'
strace-client:s
'
=>
\
$opt_strace_client
,
'
strace-client:s
'
=>
\
$opt_strace_client
,
'
max-save-core=i
'
=>
\
$opt_max_save_core
,
'
max-save-core=i
'
=>
\
$opt_max_save_core
,
'
max-save-datadir=i
'
=>
\
$opt_max_save_datadir
,
'
max-save-datadir=i
'
=>
\
$opt_max_save_datadir
,
'
max-test-fail=i
'
=>
\
$opt_max_test_fail
,
# Coverage, profiling etc
# Coverage, profiling etc
'
gcov
'
=>
\
$opt_gcov
,
'
gcov
'
=>
\
$opt_gcov
,
...
@@ -4340,6 +4351,10 @@ Options for debugging the product
...
@@ -4340,6 +4351,10 @@ Options for debugging the product
up disks for heavily crashing server). Defaults to
up disks for heavily crashing server). Defaults to
$opt_max_save_datadir, set to 0 for no limit. Set
$opt_max_save_datadir, set to 0 for no limit. Set
it's default with MTR_MAX_SAVE_DATDIR
it's default with MTR_MAX_SAVE_DATDIR
max-test-fail Limit the number of test failurs before aborting
the current test run. Defaults to
$opt_max_test_fail, set to 0 for no limit. Set
it's default with MTR_MAX_TEST_FAIL
Options for valgrind
Options for valgrind
...
...
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