diff options
author | Sergei Golubchik <sergii@pisem.net> | 2010-08-27 16:53:16 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2010-08-27 16:53:16 +0200 |
commit | e86aeaeec035ff68689c67b32c56d0305554a470 (patch) | |
tree | f7653494278c43f76fd7142cec2aefd1f00e9171 /mysql-test/lib | |
parent | 9bc9855c16f815e71223398ef17cd6052becc44e (diff) | |
download | mariadb-git-e86aeaeec035ff68689c67b32c56d0305554a470.tar.gz |
use the correct path separator on windows.
remove duplicates from the --plugin-load list.
$ENV{TERM} can be undefined (on Windows)
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_cases.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mysql-test/lib/mtr_cases.pm b/mysql-test/lib/mtr_cases.pm index f7794d1964d..2aa12f60f32 100644 --- a/mysql-test/lib/mtr_cases.pm +++ b/mysql-test/lib/mtr_cases.pm @@ -621,6 +621,7 @@ sub process_opts { $tinfo->{$opt_name} = []; my @plugins; + my %seen; foreach my $opt (@opts) { @@ -640,7 +641,8 @@ sub process_opts { $value= mtr_match_prefix($opt, "--plugin-load="); if (defined $value) { - push @plugins, $value; + push @plugins, $value unless $seen{$value}; + $seen{$value}=1; next; } @@ -685,7 +687,8 @@ sub process_opts { } if (@plugins) { - push @{$tinfo->{$opt_name}}, "--plugin-load=" . join(':', @plugins); + my $sep = (IS_WIN32PERL) ? ';' : ':'; + push @{$tinfo->{$opt_name}}, "--plugin-load=" . join($sep, @plugins); } } |