summaryrefslogtreecommitdiff
path: root/mysql-test/lib
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/lib')
-rw-r--r--mysql-test/lib/mtr_misc.pl23
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))