From 91362f938da84a07ccc87abdefde2c37e4efff9a Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 23 Jan 2016 18:58:36 +0100 Subject: [PATCH] tests: use cygpath on cfg destination dir --- tests/run_test.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/run_test.pl b/tests/run_test.pl index 78b7e940c..8061e2230 100755 --- a/tests/run_test.pl +++ b/tests/run_test.pl @@ -260,9 +260,15 @@ sub run_thread { sub generate_cfg { my $out_dir = shift; - print "Info: Copy dir $o_cfg to $out_dir\n" if $o_debug_me; + my $win_out_dir = $out_dir; + if ($o_cygwin) { + $win_out_dir = `cygpath -w $win_out_dir`; + chomp($win_out_dir); + } + + print "Info: Copy dir $o_cfg to $win_out_dir\n" if $o_debug_me; local $File::Copy::Recursive::RMTrgDir = 2; - dircopy($o_cfg, $out_dir) or die "Failed to copy directory: $!\n"; + dircopy($o_cfg, $win_out_dir) or die "Failed to copy directory: $!\n"; # Enable the logging to get the trace log my $ui_ini = File::Spec->catfile($out_dir, "PCSX2_ui.ini");