diff options
author | Patrick Crews <patrick.crews@sun.com> | 2008-12-05 08:21:03 -0500 |
---|---|---|
committer | Patrick Crews <patrick.crews@sun.com> | 2008-12-05 08:21:03 -0500 |
commit | 1fc3a49a7dfb0ed341cee908c9e2dab7b3bc74d5 (patch) | |
tree | 5e7efd737c4f87e7f20c2e155c6c2c7b5243617d /mysql-test/mysql-test-run.pl | |
parent | 0cc91d084a45983b88bdb09b2bf5a7a1e77a4827 (diff) | |
download | mariadb-git-1fc3a49a7dfb0ed341cee908c9e2dab7b3bc74d5.tar.gz |
Bug#41258: mysql-test-run does not copy subdirectories of std_data on Windows (5.0 only)
Altered how we copy data from mysql-test/std_data on Windows to match what we are doing in 5.1 and 6.0
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 268dd3fbd16..70637034b6e 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -2380,13 +2380,7 @@ sub setup_vardir() { { # on windows, copy all files from std_data into var/std_data_ln mkpath("$opt_vardir/std_data_ln"); - opendir(DIR, "$glob_mysql_test_dir/std_data") - or mtr_error("Can't find the std_data directory: $!"); - for(readdir(DIR)) { - next if -d "$glob_mysql_test_dir/std_data/$_"; - copy("$glob_mysql_test_dir/std_data/$_", "$opt_vardir/std_data_ln/$_"); - } - closedir(DIR); + mtr_copy_dir("$glob_mysql_test_dir/std_data", "$opt_vardir/std_data_ln"); } # Remove old log files |