Update all modules that use --recursion-method, additionally changing it to an array with default processlist,hosts and checking the array for validity

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-08-01 17:43:09 -03:00
parent a25b9eab40
commit d99c7a6041
7 changed files with 428 additions and 226 deletions

View File

@@ -9,7 +9,7 @@ BEGIN {
use strict;
use warnings FATAL => 'all';
use English qw(-no_match_vars);
use Test::More tests => 19;
use Test::More;
use PerconaTest;
shift @INC; # our unshift (above)
@@ -95,6 +95,18 @@ like(
"Default --replicate-check=TRUE"
);
like(
$output,
qr/^\s+--recursion-method=a/m,
"--recursion-method is an array"
);
like(
$output,
qr/^\s+--recursion-method\s+processlist,hosts/m,
"Default --recursion-method is processlist,hosts"
);
# ############################################################################
# Check opts that disable other opts.
# ############################################################################
@@ -170,4 +182,4 @@ like(
# #############################################################################
# Done.
# #############################################################################
exit;
done_testing;