diff options
author | Bjorn Munch <Bjorn.Munch@sun.com> | 2009-04-01 16:23:10 +0200 |
---|---|---|
committer | Bjorn Munch <Bjorn.Munch@sun.com> | 2009-04-01 16:23:10 +0200 |
commit | c3a43bcaa6eb7b252b83d8746504529c38361126 (patch) | |
tree | 499ee588c8c2af5b3b62116200132febf6a485db /mysql-test/lib | |
parent | ba70e8eac7fad5904f16d31192d51e7145b07dcf (diff) | |
download | mariadb-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.pm | 3 |
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); |