From af6217243554d39ef707e72cbac9bcd9449d23b6 Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Tue, 29 May 2018 19:57:08 -0300 Subject: [PATCH] PT-1554 Fixed test for pt-244 (change data dir) --- t/pt-online-schema-change/pt-244.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/pt-online-schema-change/pt-244.t b/t/pt-online-schema-change/pt-244.t index fe71b5a5..763a31af 100644 --- a/t/pt-online-schema-change/pt-244.t +++ b/t/pt-online-schema-change/pt-244.t @@ -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;