mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 04:29:25 +00:00
Updated tests & 5.7 sandbox files
This commit is contained in:
@@ -143,8 +143,7 @@ is(
|
||||
'',
|
||||
'No error (issue 364)'
|
||||
);
|
||||
like(
|
||||
$ks->explain(),
|
||||
my $want = $sandbox_version lt '5.7' ?
|
||||
qr/^extra: Using where; Using index
|
||||
id: 1
|
||||
key: BASE_KID_ID
|
||||
@@ -154,9 +153,26 @@ ref: NULL
|
||||
rows: 17[1-9]
|
||||
select_type: SIMPLE
|
||||
table: issue_364
|
||||
type: index\Z/,
|
||||
type: index\Z/ :
|
||||
qr/^extra: Using where; Using index
|
||||
filtered: 1.13
|
||||
id: 1
|
||||
key: BASE_KID_ID
|
||||
key_len: 17
|
||||
partitions: NULL
|
||||
possible_keys: BASE_KID_ID
|
||||
ref: NULL
|
||||
rows: 176
|
||||
select_type: SIMPLE
|
||||
table: issue_364
|
||||
type: index/;
|
||||
|
||||
like(
|
||||
$ks->explain(),
|
||||
$want,
|
||||
'EXPLAIN plan (issue 364)'
|
||||
);
|
||||
|
||||
is(
|
||||
$ks->query(),
|
||||
'EXPLAIN SELECT BASE_KID_ID, ID FROM `test`.`issue_364` FORCE INDEX (`BASE_KID_ID`) WHERE BASE_KID_ID=1 OR ID=1',
|
||||
|
@@ -670,7 +670,7 @@ my @vc_tools = grep { chomp; basename($_) =~ /\A[a-z-]+\z/ }
|
||||
|
||||
foreach my $tool ( @vc_tools ) {
|
||||
my $tool_name = basename($tool);
|
||||
next if $tool_name eq 'pt-agent';
|
||||
next if $tool_name eq 'pt-agent' || $tool_name =~ m/^pt-mongodb-/;
|
||||
my $output = `$tool --help`;
|
||||
like(
|
||||
$output,
|
||||
|
Reference in New Issue
Block a user