diff options
author | unknown <iggy@rolltop.ignatz42.dyndns.org> | 2006-11-02 15:16:33 -0500 |
---|---|---|
committer | unknown <iggy@rolltop.ignatz42.dyndns.org> | 2006-11-02 15:16:33 -0500 |
commit | a04d382796c8c2c60869f3de0ff404ee4f6f29b8 (patch) | |
tree | 923d94e2bafe10a245d903856ffe14c9935e3e52 /mysql-test/lib | |
parent | fef32d410558ad92d9dff024dd360c975f09b820 (diff) | |
parent | 75bde223c487a3ce0df496bdbf549761c15c07e3 (diff) | |
download | mariadb-git-a04d382796c8c2c60869f3de0ff404ee4f6f29b8.tar.gz |
Merge rolltop.ignatz42.dyndns.org:/mnt/storeage/mtr_vs_config/my50-mtr_vs_config
into rolltop.ignatz42.dyndns.org:/mnt/storeage/mysql-5.0-maint
mysql-test/mysql-test-run.pl:
Auto merged
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_misc.pl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_misc.pl b/mysql-test/lib/mtr_misc.pl index 5ac89aee62c..ea163eeba22 100644 --- a/mysql-test/lib/mtr_misc.pl +++ b/mysql-test/lib/mtr_misc.pl @@ -66,6 +66,9 @@ sub mtr_add_arg ($$@) { ############################################################################## +# Note - More specific paths should be given before less specific. For examle +# /client/debug should be listed before /client + sub mtr_path_exists (@) { foreach my $path ( @_ ) { @@ -81,6 +84,9 @@ sub mtr_path_exists (@) { } } +# Note - More specific paths should be given before less specific. For examle +# /client/debug should be listed before /client + sub mtr_script_exists (@) { foreach my $path ( @_ ) { @@ -111,6 +117,20 @@ sub mtr_file_exists (@) { return ""; } +# Note - More specific paths should be given before less specific. For examle +# /client/debug should be listed before /client + +sub mtr_file_exists (@) { + foreach my $path ( @_ ) + { + return $path if -e $path; + } + return ""; +} + +# Note - More specific paths should be given before less specific. For examle +# /client/debug should be listed before /client + sub mtr_exe_maybe_exists (@) { my @path= @_; @@ -129,6 +149,9 @@ sub mtr_exe_maybe_exists (@) { return ""; } +# Note - More specific paths should be given before less specific. For examle +# /client/debug should be listed before /client + sub mtr_exe_exists (@) { my @path= @_; if (my $path= mtr_exe_maybe_exists(@path)) |