PT-118 Updated tests for pt-table-checksum/error_handling.t

This commit is contained in:
Carlos Salguero
2018-05-07 15:11:33 -03:00
parent 117292b897
commit 0501558a2e
3 changed files with 12 additions and 12 deletions

View File

@@ -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;