mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 17:15:44 +00:00
PT-2340 - Support MySQL 8.4
- Fixed comparison operators for VersionCheck calls
This commit is contained in:
@@ -100,7 +100,7 @@ ok(
|
||||
# other than to ensure that there's at least one for each table.
|
||||
# 2
|
||||
$row = $source_dbh->selectrow_arrayref("select count(*) from percona.checksums");
|
||||
my $max_chunks = $sandbox_version < '5.7' ? 60 : 100;
|
||||
my $max_chunks = $sandbox_version lt '5.7' ? 60 : 100;
|
||||
|
||||
ok(
|
||||
$row->[0] > 25 && $row->[0] < $max_chunks,
|
||||
@@ -127,7 +127,7 @@ ok(
|
||||
|
||||
$row = $source_dbh->selectrow_arrayref("select count(*) from percona.checksums");
|
||||
|
||||
my $max_rows = $sandbox_version >= '8.0' ? 102 : $sandbox_version < '5.7' ? 90 : 100;
|
||||
my $max_rows = $sandbox_version ge '8.0' ? 102 : $sandbox_version lt '5.7' ? 90 : 100;
|
||||
ok(
|
||||
$row->[0] >= 75 && $row->[0] <= $max_rows,
|
||||
'Between 75 and 90 chunks on source'
|
||||
|
@@ -21,7 +21,7 @@ my $source_dbh = $sb->get_dbh_for('source');
|
||||
|
||||
if ( !$source_dbh ) {
|
||||
plan skip_all => 'Cannot connect to sandbox source';
|
||||
} elsif ($sandbox_version >= '8.0') {
|
||||
} elsif ($sandbox_version ge '8.0') {
|
||||
plan skip_all => "8.0 requires fix for https://jira.percona.com/browse/PT-1805";
|
||||
} else {
|
||||
plan tests => 3;
|
||||
|
@@ -70,7 +70,7 @@ like(
|
||||
stderr => 1,
|
||||
);
|
||||
|
||||
my $return_code = ($sandbox_version >= '5.7') ? 16 : 0;
|
||||
my $return_code = ($sandbox_version ge '5.7') ? 16 : 0;
|
||||
|
||||
is(
|
||||
$exit_status,
|
||||
|
Reference in New Issue
Block a user