mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-25 21:54:48 +00:00
PT-1554 Fixed test for pt-244 (change data dir)
This commit is contained in:
@@ -21,7 +21,11 @@ use Sandbox;
|
||||
use SqlModes;
|
||||
use File::Temp qw/ tempdir /;
|
||||
|
||||
plan tests => 4;
|
||||
if ($sandbox_version lt '5.7') {
|
||||
plan skip_all => 'This test needs MySQL 5.7+';
|
||||
} else {
|
||||
plan tests => 4;
|
||||
}
|
||||
|
||||
require "$trunk/bin/pt-online-schema-change";
|
||||
|
||||
@@ -87,7 +91,7 @@ like(
|
||||
);
|
||||
|
||||
|
||||
my $db_dir="$new_dir/test/";
|
||||
my $db_dir="$new_dir";
|
||||
opendir(my $dh, $db_dir) || die "Can't opendir $db_dir: $!";
|
||||
my @files = grep { /^t3#P#p/ } readdir($dh);
|
||||
closedir $dh;
|
||||
|
Reference in New Issue
Block a user