~percona-toolkit-dev/percona-toolkit/copy-dsn-F-bug-1034170

« back to all changes in this revision

Viewing changes to t/pt-slave-delay/auto_restart.t

  • Committer: Daniel Nichter
  • Date: 2012-08-11 19:52:41 UTC
  • Revision ID: daniel@percona.com-20120811195241-nfjcl8w106td81kn
Fix and stablize pt-slave-delay tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
# the child should restart the slave, and the tool should report
47
47
# that it reconnected and did some work, ending with "Setting slave
48
48
# to run normally".
49
 
diag('Running...');
50
49
my $pid = fork();
51
50
if ( $pid ) {
52
51
   # parent
65
64
   diag(`/tmp/12346/start >/dev/null`);
66
65
   # Ensure we don't break the sandbox -- instance 12347 will be disconnected
67
66
   # when its master gets rebooted
68
 
   diag("Restarting slave on instance 12347 after restarting instance 12346");
69
67
   diag(`/tmp/12347/use -e "stop slave; start slave"`);
70
68
   exit;
71
69
}