mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-02 02:34:19 +00:00
PT-118 Updated tests for pt-table-checksum/error_handling.t
This commit is contained in:
@@ -700,7 +700,7 @@ my %checksum_result_col = (
|
||||
chunks => 5,
|
||||
skipped => 6,
|
||||
time => 7,
|
||||
table => 8,
|
||||
table => 7,
|
||||
);
|
||||
sub count_checksum_results {
|
||||
my ($output, $column, $table) = @_;
|
||||
@@ -733,7 +733,7 @@ sub normalize_checksum_results {
|
||||
open my $fh, ">", $tmp_file or die "Cannot open $tmp_file: $OS_ERROR";
|
||||
printf $fh $output;
|
||||
close $fh;
|
||||
my $normal_output = `cat $tmp_file | awk '/^[0-9 ]/ {print \$2 " " \$3 " " \$4 " " \$5 " " \$6 " " \$8} /^[A-Z]/ {print \$0}'`;
|
||||
my $normal_output = `cat $tmp_file | awk '/^[0-9 ]/ {print \$2 " " \$3 " " \$4 " " \$5 " " \$6 " " \$7 " " \$9} /^[A-Z]/ {print \$0}'`;
|
||||
if ( wantarray ) {
|
||||
my $original_output = `cat $tmp_file`;
|
||||
return $normal_output, $original_output;
|
||||
|
Reference in New Issue
Block a user