summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2010-01-05 13:05:00 +0100
committerBjorn Munch <Bjorn.Munch@sun.com>2010-01-05 13:05:00 +0100
commit04c39b1939abc7f80289b0feffe715e29a07f5ad (patch)
tree9c1779714f19bfe8fb0081d90985b26d41c1f0cd /mysql-test/mysql-test-run.pl
parent50ab925e046f197daa97057158fda532f6fe1c81 (diff)
downloadmariadb-git-04c39b1939abc7f80289b0feffe715e29a07f5ad.tar.gz
Bug #49166 mtr --combination is broken after restrictions of combination names
Combinations beginning with -- not allowed Allow them...
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 7d2426459d0..27c2ace56b2 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -3251,9 +3251,11 @@ sub run_testcase ($) {
mtr_verbose("Running test:", $tinfo->{name});
- # Allow only alpanumerics pluss _ - + . in combination names
+ # Allow only alpanumerics pluss _ - + . in combination names,
+ # or anything beginning with -- (the latter comes from --combination)
my $combination= $tinfo->{combination};
- if ($combination && $combination !~ /^\w[-\w\.\+]+$/)
+ if ($combination && $combination !~ /^\w[-\w\.\+]+$/
+ && $combination !~ /^--/)
{
mtr_error("Combination '$combination' contains illegal characters");
}