summaryrefslogtreecommitdiff
path: root/mysql-test/lib
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2009-04-01 16:23:10 +0200
committerBjorn Munch <Bjorn.Munch@sun.com>2009-04-01 16:23:10 +0200
commitc3a43bcaa6eb7b252b83d8746504529c38361126 (patch)
tree499ee588c8c2af5b3b62116200132febf6a485db /mysql-test/lib
parentba70e8eac7fad5904f16d31192d51e7145b07dcf (diff)
downloadmariadb-git-c3a43bcaa6eb7b252b83d8746504529c38361126.tar.gz
Bug #43570 MTR2 hangs when test fails and named pipe created
Hangs when trying to copy the pipe Amend copytree() to only copy regular files
Diffstat (limited to 'mysql-test/lib')
-rw-r--r--mysql-test/lib/My/File/Path.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/lib/My/File/Path.pm b/mysql-test/lib/My/File/Path.pm
index 99edeecdaf7..25a26568eee 100644
--- a/mysql-test/lib/My/File/Path.pm
+++ b/mysql-test/lib/My/File/Path.pm
@@ -164,6 +164,9 @@ sub copytree {
copytree("$from_dir/$_", "$to_dir/$_");
next;
}
+
+ # Only copy plain files
+ next unless -f "$from_dir/$_";
copy("$from_dir/$_", "$to_dir/$_");
}
closedir(DIR);