mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-14 01:00:23 +08:00
PT-207 Updated tests for table-checksum - resume
This commit is contained in:
@@ -98,9 +98,9 @@ $output = output(
|
||||
sub { pt_table_checksum::main(@args, qw(-d sakila --resume)) },
|
||||
);
|
||||
|
||||
is(
|
||||
like(
|
||||
$output,
|
||||
'',
|
||||
qr/Starting checksum/,
|
||||
"Resume with nothing to do"
|
||||
);
|
||||
|
||||
@@ -140,7 +140,7 @@ is_deeply(
|
||||
"Resume finished sakila"
|
||||
);
|
||||
|
||||
my (undef, $first_tbl) = split /\n/, $output;
|
||||
my (undef, undef, undef, $first_tbl) = split /\n/, $output;
|
||||
like(
|
||||
$first_tbl,
|
||||
qr/sakila.country$/,
|
||||
@@ -263,7 +263,7 @@ is_deeply(
|
||||
"Resume finished sakila"
|
||||
);
|
||||
|
||||
(undef, undef, $first_tbl) = split /\n/, $output;
|
||||
(undef, undef, undef, undef, $first_tbl) = split /\n/, $output;
|
||||
like(
|
||||
$first_tbl,
|
||||
qr/sakila.payment$/,
|
||||
@@ -272,7 +272,7 @@ like(
|
||||
|
||||
like(
|
||||
$output,
|
||||
qr/^Resuming from sakila.payment chunk 7, timestamp 2011-10-15 13:00:28/s,
|
||||
qr/Resuming from sakila.payment chunk 7, timestamp 2011-10-15 13:00:28/s,
|
||||
"Resuming from sakila.payment chunk 7"
|
||||
);
|
||||
|
||||
@@ -342,7 +342,7 @@ is_deeply(
|
||||
"Resume finished sakila"
|
||||
);
|
||||
|
||||
(undef, $first_tbl) = split /\n/, $output;
|
||||
(undef, undef, undef, $first_tbl) = split /\n/, $output;
|
||||
like(
|
||||
$first_tbl,
|
||||
qr/sakila.rental$/,
|
||||
@@ -438,7 +438,9 @@ is_deeply(
|
||||
|
||||
is(
|
||||
$output,
|
||||
"Resuming from sakila.rental chunk 11, timestamp 2011-10-15 13:00:49
|
||||
"Checking if all tables can be checksummed ...
|
||||
Starting checksum ...
|
||||
Resuming from sakila.rental chunk 11, timestamp 2011-10-15 13:00:49
|
||||
ERRORS DIFFS ROWS CHUNKS SKIPPED TABLE
|
||||
0 0 5044 8 0 sakila.rental
|
||||
0 0 2 1 0 sakila.staff
|
||||
@@ -493,7 +495,9 @@ $output = output(
|
||||
|
||||
is(
|
||||
$output,
|
||||
"ERRORS DIFFS ROWS CHUNKS SKIPPED TABLE
|
||||
"Checking if all tables can be checksummed ...
|
||||
Starting checksum ...
|
||||
ERRORS DIFFS ROWS CHUNKS SKIPPED TABLE
|
||||
0 0 26 8 0 test.t3
|
||||
",
|
||||
"Resumed from t3"
|
||||
|
||||
Reference in New Issue
Block a user