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
b43656bd
Commit
b43656bd
authored
Mar 31, 2009
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
52738355
ce65f283
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletion
+35
-1
mysql-test/include/mtr_check.sql
mysql-test/include/mtr_check.sql
+10
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+25
-1
No files found.
mysql-test/include/mtr_check.sql
View file @
b43656bd
...
...
@@ -57,3 +57,13 @@ BEGIN
mysql
.
user
;
END
||
--
-- Procedure used by test case used to force all
-- servers to restart after testcase and thus skipping
-- check test case after test
--
CREATE
DEFINER
=
root
@
localhost
PROCEDURE
force_restart
()
BEGIN
SELECT
1
INTO
OUTFILE
'force_restart'
;
END
||
mysql-test/mysql-test-run.pl
View file @
b43656bd
...
...
@@ -3126,6 +3126,26 @@ sub find_analyze_request
}
# The test can leave a file in var/tmp/ to signal
# that all servers should be restarted
sub
restart_forced_by_test
{
my
$restart
=
0
;
foreach
my
$mysqld
(
mysqlds
()
)
{
my
$datadir
=
$mysqld
->
value
('
datadir
');
my
$force_restart_file
=
"
$datadir
/mtr/force_restart
";
if
(
-
f
$force_restart_file
)
{
mtr_verbose
("
Restart of servers forced by test
");
$restart
=
1
;
last
;
}
}
return
$restart
;
}
# Return timezone value of tinfo or default value
sub
timezone
{
my
(
$tinfo
)
=
@_
;
...
...
@@ -3294,7 +3314,11 @@ sub run_testcase ($) {
if
(
$res
==
0
)
{
my
$check_res
;
if
(
$opt_check_testcases
and
if
(
restart_forced_by_test
()
)
{
stop_all_servers
();
}
elsif
(
$opt_check_testcases
and
$check_res
=
check_testcase
(
$tinfo
,
"
after
"))
{
if
(
$check_res
==
1
)
{
...
...
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