PT-1554 Fixes tests for slave find

This commit is contained in:
Carlos Salguero
2018-05-18 23:34:28 -03:00
parent 356ba92ed0
commit a230f1f313
3 changed files with 5 additions and 4 deletions

View File

@@ -125,6 +125,7 @@ $result =~ s/Version.*/Version/g;
$result =~ s/Uptime.*/Uptime/g; $result =~ s/Uptime.*/Uptime/g;
$result =~ s/[0-9]* seconds/0 seconds/g; $result =~ s/[0-9]* seconds/0 seconds/g;
$result =~ s/Binary logging.*/Binary logging/g; $result =~ s/Binary logging.*/Binary logging/g;
$result =~ s/Replication Is a slave, has 1 slaves connected, is.*/Replication Is a slave, has 1 slaves connected, is/g;
my $innodb_re = qr/InnoDB version\s+(.*)/; my $innodb_re = qr/InnoDB version\s+(.*)/;
my (@innodb_versions) = $result =~ /$innodb_re/g; my (@innodb_versions) = $result =~ /$innodb_re/g;
@@ -157,7 +158,7 @@ ok(
? "t/pt-slave-find/samples/summary001.txt" ? "t/pt-slave-find/samples/summary001.txt"
: "t/pt-slave-find/samples/summary001-5.0.txt"), cmd_output => 1, keep_output => 1, update_samples => 1), : "t/pt-slave-find/samples/summary001-5.0.txt"), cmd_output => 1, keep_output => 1, update_samples => 1),
"Summary report format", "Summary report format",
) or die diag("\n>>$result<<\n"); );
# ############################################################################# # #############################################################################
# Done. # Done.

View File

@@ -13,7 +13,7 @@ InnoDB version BUILTIN
Version Version
Server ID 12346 Server ID 12346
Uptime Uptime
Replication Is a slave, has 1 slaves connected, is read_only Replication Is a slave, has 1 slaves connected, is
Filters Filters
Binary logging unknown Binary logging unknown
Slave status 0 seconds behind, running, no errors Slave status 0 seconds behind, running, no errors
@@ -24,7 +24,7 @@ InnoDB version BUILTIN
Version Version
Server ID 12347 Server ID 12347
Uptime Uptime
Replication Is a slave, has 0 slaves connected, is read_only Replication Is a slave, has 0 slaves connected, is
Filters Filters
Binary logging unknown Binary logging unknown
Slave status 0 seconds behind, running, no errors Slave status 0 seconds behind, running, no errors

View File

@@ -13,7 +13,7 @@ InnoDB version BUILTIN
Version Version
Server ID 12346 Server ID 12346
Uptime Uptime
Replication Is a slave, has 1 slaves connected, is read_only Replication Is a slave, has 1 slaves connected, is
Filters Filters
Binary logging Binary logging
Slave status 0 seconds behind, running, no errors Slave status 0 seconds behind, running, no errors