mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Check that the default-storage-engine used by test is a supported engine
This commit is contained in:
@@ -536,6 +536,26 @@ sub optimize_cases {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# =======================================================
|
||||
# Check that engine selected by
|
||||
# --default-storage-engine=<engine> is supported
|
||||
# =======================================================
|
||||
foreach my $opt ( @{$tinfo->{master_opt}} ) {
|
||||
my $default_engine=
|
||||
mtr_match_prefix($opt, "--default-storage-engine=");
|
||||
|
||||
if (defined $default_engine){
|
||||
if ( ! exists $::mysqld_variables{$default_engine} )
|
||||
{
|
||||
$tinfo->{'skip'}= 1;
|
||||
$tinfo->{'comment'}=
|
||||
"'$default_engine' not supported";
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user