Bug #19101 mysql-test-run.pl --start-and-exit --do-test=rpl_ndb
Submitted: 14 Apr 2006 12:19 Modified: 24 Apr 2006 14:54
Reporter: Jonathan Miller Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.1.9 OS:Linux (Linux 32 Bit OS)
Assigned to: Magnus Blåudd CPU Architecture:Any

[14 Apr 2006 12:19] Jonathan Miller
Description:
I use to be able to do:

Mysql-test-run --do-test=rpl_ndb --start-and-exit

And it would start a master and slave cluster and exit.

Using the perl script it just starts running all the rpl_ndb tests.

I really need a way to start a master and slave cluster with the 
mysqld's for each and have it exit.

How to repeat:
mysql-test-run.pl --start-and-exit --do-test=rpl_ndb

Suggested fix:
Start Master CLuster + MySQLD and start Slave Cluster + MySQLD and Exit
[24 Apr 2006 10:26] Magnus Blåudd
I tested and would like to say that it works. It will report that it is "running" two skipped tests and then it finds rpl_ndb_UUID, detects that it should be run, starts NDB(s) and all mysqld(s). Then it will exit with the message "Servers started, exiting".

It is of course possible to make it _silently_ skip the tests to be skipped, but I think it's unfortunate to introduce more if statmements at this place in the script.

[msvensson@neptunus mysql-test]$ ./mysql-test-run.pl --do-test=rpl_ndb --start-and-exit

<snip>
=======================================================
Finding  Tests in the 'main' suite
Starting Tests in the 'main' suite

TEST                           RESULT         TIME (ms)
-------------------------------------------------------

rpl_ndb_2innodb                [ disabled ]  BUG#19227 2006-04-20 pekka pk delete apparently not replicated
rpl_ndb_2myisam                [ disabled ]  BUG#19227 2006-04-20 pekka pk delete apparently not replicated
rpl_ndb_UUID
Servers started, exiting
[24 Apr 2006 14:54] Jonathan Miller
Okay, will give it a try. Thanks