1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-4425 REGEXP enhancements

This commit is contained in:
Alexander Barkov
2013-09-26 18:02:17 +04:00
parent 9d83468e78
commit 285e7aa179
371 changed files with 193126 additions and 7719 deletions

View File

@ -10,14 +10,23 @@ sub list_cases {
sub start_test {
my ($self, $tinfo)= @_;
my $args=[ ];
my $args;
my $path;
my $cmd = $self->{ctests}->{$tinfo->{shortname}};
if ($cmd =~ /[ "'><%!*?]/) {
($path, $args) = ('/bin/sh', [ '-c', $cmd ])
} else {
($path, $args) = ($cmd, , [ ])
}
my $oldpwd=getcwd();
chdir $::opt_vardir;
my $proc=My::SafeProcess->new
(
name => $tinfo->{shortname},
path => $self->{ctests}->{$tinfo->{shortname}},
path => $path,
args => \$args,
append => 1,
output => $::path_current_testlog,