mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-11 01:01:36 +08:00
PT-1554 Fixes tests for slave find
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user