Skip to content

Commit ac0ce44

Browse files
committed
./mtr --skip-not-found should skip combinations too
With the result like encryption.innochecksum 'debug' [ skipped ] combination not found instead of *** ERROR: Could not run encryption.innochecksum with 'debug' combination(s)
1 parent 613d019 commit ac0ce44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mysql-test/lib/mtr_cases.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,12 @@ sub collect_one_test_case {
892892
}
893893
my @no_combs = grep { $test_combs{$_} == 1 } keys %test_combs;
894894
if (@no_combs) {
895+
if ($::opt_skip_not_found) {
896+
push @{$tinfo->{combinations}}, @no_combs;
897+
$tinfo->{'skip'}= 1;
898+
$tinfo->{'comment'}= "combination not found";
899+
return $tinfo;
900+
}
895901
mtr_error("Could not run $name with '".(
896902
join(',', sort @no_combs))."' combination(s)");
897903
}

0 commit comments

Comments
 (0)