PT-1554 Fixed test for pt-244 (change data dir)

This commit is contained in:
Carlos Salguero
2018-05-29 19:57:08 -03:00
parent 08b00e7fab
commit af62172435

View File

@@ -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;