From c341ca2272a9f8481ebe3a3bf8cbd47ffab57245 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Nov 2006 13:20:48 +0100 Subject: [PATCH] BUG#24354 option "--extern" of mysql-test-run.pl does not work anymore mysql-test/mysql-test-run.pl: Don't require restart if master is not started when running with --extern --- mysql-test/mysql-test-run.pl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 6cbf5789ed8..103481a491d 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3820,10 +3820,17 @@ sub run_testcase_need_master_restart($) } elsif( ! $master->[0]->{'pid'} ) { - $do_restart= 1; - mtr_verbose("Restart master: master is not started"); + if ( $opt_extern ) + { + $do_restart= 0; + mtr_verbose("No restart: using extern master"); + } + else + { + $do_restart= 1; + mtr_verbose("Restart master: master is not started"); + } } - return $do_restart; }