mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 13:46:22 +00:00
Updated the tests to use the new VersionParser
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env perl
|
||||
// #!/usr/bin/env perl
|
||||
|
||||
BEGIN {
|
||||
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
|
||||
@@ -16,7 +16,6 @@ use Sandbox;
|
||||
require "$trunk/bin/pt-table-sync";
|
||||
|
||||
my $output;
|
||||
my $vp = new VersionParser();
|
||||
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
|
||||
my $master_dbh = $sb->get_dbh_for('master');
|
||||
@@ -28,7 +27,7 @@ if ( !$master_dbh ) {
|
||||
elsif ( !$slave_dbh ) {
|
||||
plan skip_all => 'Cannot connect to sandbox slave';
|
||||
}
|
||||
elsif ( !$vp->version_ge($master_dbh, '5.0.2') ) {
|
||||
elsif ( VersionParser->new($master_dbh) < '5.0.2' ) {
|
||||
plan skip_all => 'Sever does not support triggers (< 5.0.2)';
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user