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
e37f80a1
Commit
e37f80a1
authored
Mar 08, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#17574 Detect cluster start failure and "fail" ndb_* tests
- Fix problems that occur when ndbcluster is not supported
parent
51ef90a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
mysql-test/lib/mtr_cases.pl
mysql-test/lib/mtr_cases.pl
+7
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+2
-2
No files found.
mysql-test/lib/mtr_cases.pl
View file @
e37f80a1
...
...
@@ -258,6 +258,13 @@ sub collect_one_test_case($$$$$$$) {
$tinfo
->
{'
ndb_test
'}
=
1
;
if
(
$::opt_skip_ndbcluster
)
{
# Skip all ndb tests
$tinfo
->
{'
skip
'}
=
1
;
return
;
}
if
(
!
$::opt_with_ndbcluster
)
{
# Ndb is not supported, skip them
$tinfo
->
{'
skip
'}
=
1
;
return
;
}
...
...
mysql-test/mysql-test-run.pl
View file @
e37f80a1
...
...
@@ -1840,7 +1840,7 @@ sub run_testcase ($) {
if
(
$tinfo
->
{'
master_restart
'}
or
$master
->
[
0
]
->
{'
running_master_is_special
'}
or
# Stop if cluster is started but test cases does not need cluster
(
$tinfo
->
{'
ndb_test
'}
!=
$using_ndbcluster_master
)
)
(
$
opt_with_ndbcluster
&&
$
tinfo
->
{'
ndb_test
'}
!=
$using_ndbcluster_master
)
)
{
stop_masters
();
$master
->
[
0
]
->
{'
running_master_is_special
'}
=
0
;
# Forget why we stopped
...
...
@@ -1889,7 +1889,7 @@ sub run_testcase ($) {
if
(
$tinfo
->
{'
component_id
'}
eq
'
mysqld
'
and
!
$opt_local_master
)
{
if
(
$master
->
[
0
]
->
{'
ndbcluster
'}
)
if
(
$
opt_with_ndbcluster
and
$
master
->
[
0
]
->
{'
ndbcluster
'}
)
{
# Cluster is not started
...
...
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