fix things looking for hardcoded mysqlbinlog path (t/pt-table-checksum/replication_filters.t and t/pt-table-sync/traces.t)

This commit is contained in:
baron
2012-06-06 21:29:34 -04:00
parent 7facc149a8
commit 7a57261843
2 changed files with 15 additions and 3 deletions

View File

@@ -25,7 +25,12 @@ my $master_dbh = $sb->get_dbh_for('master');
my $slave_dbh = $sb->get_dbh_for('slave1');
my $mysqlbinlog = `which mysqlbinlog`;
chomp $mysqlbinlog if $mysqlbinlog;
if ( $mysqlbinlog ) {
chomp $mysqlbinlog;
}
elsif ( -x "$ENV{PERCONA_TOOLKIT_SANDBOX}/bin/mysqlbinlog" ) {
$mysqlbinlog = "$ENV{PERCONA_TOOLKIT_SANDBOX}/bin/mysqlbinlog";
}
if ( !$master_dbh ) {
plan skip_all => 'Cannot connect to sandbox master';