Loading mysql-test/lib/mtr_misc.pl +16 −2 Original line number Diff line number Diff line Loading @@ -81,9 +81,16 @@ sub mtr_path_exists (@) { sub mtr_script_exists (@) { foreach my $path ( @_ ) { if($::glob_win32) { return $path if -f $path; } else { return $path if -x $path; } } if ( @_ == 1 ) { mtr_error("Could not find $_[0]"); Loading @@ -98,9 +105,16 @@ sub mtr_exe_exists (@) { my @path= @_; map {$_.= ".exe"} @path if $::glob_win32; foreach my $path ( @path ) { if($::glob_win32) { return $path if -f $path; } else { return $path if -x $path; } } if ( @path == 1 ) { mtr_error("Could not find $path[0]"); Loading Loading
mysql-test/lib/mtr_misc.pl +16 −2 Original line number Diff line number Diff line Loading @@ -81,9 +81,16 @@ sub mtr_path_exists (@) { sub mtr_script_exists (@) { foreach my $path ( @_ ) { if($::glob_win32) { return $path if -f $path; } else { return $path if -x $path; } } if ( @_ == 1 ) { mtr_error("Could not find $_[0]"); Loading @@ -98,9 +105,16 @@ sub mtr_exe_exists (@) { my @path= @_; map {$_.= ".exe"} @path if $::glob_win32; foreach my $path ( @path ) { if($::glob_win32) { return $path if -f $path; } else { return $path if -x $path; } } if ( @path == 1 ) { mtr_error("Could not find $path[0]"); Loading