mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
t/pt-archiver/basics.t: Skip some --bulk-insert tests if LOCAL INFILE is disabled
This commit is contained in:
@@ -28,9 +28,6 @@ if ( !$master_dbh ) {
|
|||||||
elsif ( !$slave1_dbh ) {
|
elsif ( !$slave1_dbh ) {
|
||||||
plan skip_all => 'Cannot connect to sandbox slave1';
|
plan skip_all => 'Cannot connect to sandbox slave1';
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
plan tests => 29;
|
|
||||||
}
|
|
||||||
|
|
||||||
my $output;
|
my $output;
|
||||||
my $rows;
|
my $rows;
|
||||||
@@ -188,7 +185,8 @@ cmp_ok(
|
|||||||
# #############################################################################
|
# #############################################################################
|
||||||
# Bug 903387: pt-archiver doesn't honor b=1 flag to create SQL_LOG_BIN statement
|
# Bug 903387: pt-archiver doesn't honor b=1 flag to create SQL_LOG_BIN statement
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
|
SKIP: {
|
||||||
|
skip('LOAD DATA LOCAL INFILE is disabled', 3) if !$can_load_data;
|
||||||
$sb->load_file('master', "t/pt-archiver/samples/bulk_regular_insert.sql");
|
$sb->load_file('master', "t/pt-archiver/samples/bulk_regular_insert.sql");
|
||||||
$sb->wait_for_slaves();
|
$sb->wait_for_slaves();
|
||||||
|
|
||||||
@@ -233,10 +231,11 @@ is_deeply(
|
|||||||
$original_rows,
|
$original_rows,
|
||||||
"Bug 903387: slave still has rows"
|
"Bug 903387: slave still has rows"
|
||||||
) or diag(Dumper($rows));
|
) or diag(Dumper($rows));
|
||||||
|
}
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
# Done.
|
# Done.
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
$sb->wipe_clean($master_dbh);
|
$sb->wipe_clean($master_dbh);
|
||||||
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||||
exit;
|
|
||||||
|
done_testing;
|
||||||
|
Reference in New Issue
Block a user