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
2aae1854
Commit
2aae1854
authored
Apr 28, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit number of test failures before aborting
parent
aa635c20
Changes
1
Hide 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 @
2aae1854
...
...
@@ -199,6 +199,7 @@ my $source_dist= 0;
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_test_fail
=
$ENV
{
MTR_MAX_TEST_FAIL
}
||
10
;
select
(
STDOUT
);
$|
=
1
;
# Automatically flush STDOUT
...
...
@@ -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_datadir
=
0
;
# Number of datadirs saved in vardir/log/ so far.
my
$num_failed_test
=
0
;
# Number of tests failed so far
# Scheduler variables
my
$max_ndb
=
$opt_parallel
/
2
;
...
...
@@ -442,6 +444,14 @@ sub run_test_server {
push
(
@$completed
,
$result
);
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
...
...
@@ -719,6 +729,7 @@ sub command_line_setup {
'
strace-client:s
'
=>
\
$opt_strace_client
,
'
max-save-core=i
'
=>
\
$opt_max_save_core
,
'
max-save-datadir=i
'
=>
\
$opt_max_save_datadir
,
'
max-test-fail=i
'
=>
\
$opt_max_test_fail
,
# Coverage, profiling etc
'
gcov
'
=>
\
$opt_gcov
,
...
...
@@ -4340,6 +4351,10 @@ Options for debugging the product
up disks for heavily crashing server). Defaults to
$opt_max_save_datadir, set to 0 for no limit. Set
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
...
...
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