~percona-toolkit-dev/percona-toolkit/fix-password-comma-bug-886077

« back to all changes in this revision

Viewing changes to t/pt-heartbeat/multi_update_mode.t

  • Committer: Daniel Nichter
  • Date: 2012-02-07 20:10:11 UTC
  • mfrom: (174 2.0)
  • mto: This revision was merged to the branch mainline in revision 189.
  • Revision ID: daniel@percona.com-20120207201011-sok2c1f2ay9qr3gm
Merge trunk r174.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
use Sandbox;
17
17
require "$trunk/bin/pt-heartbeat";
18
18
 
19
 
diag(`$trunk/sandbox/test-env reset`);  # don't repl sakila db to 12347
20
 
diag(`$trunk/sandbox/stop-sandbox 12347 >/dev/null`);
21
 
diag(`$trunk/sandbox/start-sandbox slave 12347 12346 >/dev/null`);
 
19
diag(`$trunk/sandbox/test-env reset`);
22
20
 
23
21
my $dp  = new DSNParser(opts=>$dsn_opts);
24
22
my $sb  = new Sandbox(basedir => '/tmp', DSNParser => $dp);
225
223
   sub { pt_heartbeat::main(qw(-h 127.1 -P 12347 -u msandbox -p msandbox),
226
224
      qw(-D test --check --print-master-server-id --master-server-id 42),
227
225
      qw(--no-insert-heartbeat-row)) },
 
226
   stderr => 1,
228
227
);
229
228
 
230
229
like(
246
245
   );
247
246
}
248
247
 
249
 
diag(`rm -rf /tmp/mk-heartbeat-sentinel >/dev/null`);
250
 
diag(`$trunk/sandbox/stop-sandbox 12347 >/dev/null`);
251
 
 
252
248
# #############################################################################
253
249
# Done.
254
250
# #############################################################################
 
251
diag(`rm -rf /tmp/pt-heartbeat-sentinel >/dev/null`);
255
252
$sb->wipe_clean($master_dbh);
256
253
exit;