mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug #47075 Wildcards in experimental test names destroyed when tested first time
Extract substr into local variable
This commit is contained in:
@ -134,8 +134,8 @@ sub mtr_report_test ($) {
|
|||||||
# an asterisk at the end, determine if the characters up to
|
# an asterisk at the end, determine if the characters up to
|
||||||
# but excluding the asterisk are the same
|
# but excluding the asterisk are the same
|
||||||
if ( $exp ne "" && substr($exp, -1, 1) eq "*" ) {
|
if ( $exp ne "" && substr($exp, -1, 1) eq "*" ) {
|
||||||
$exp = substr($exp, 0, length($exp) - 1);
|
my $nexp = substr($exp, 0, length($exp) - 1);
|
||||||
if ( substr($test_name, 0, length($exp)) ne $exp ) {
|
if ( substr($test_name, 0, length($nexp)) ne $nexp ) {
|
||||||
# no match, try next entry
|
# no match, try next entry
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user