From b174f4736f05c4ddff3f5181599d1afe23c0456b Mon Sep 17 00:00:00 2001
From: Gregory Hainaut <gregory.hainaut@gmail.com>
Date: Sat, 23 Jan 2016 18:42:17 +0100
Subject: [PATCH] tests: replace cygwin auto detection by an option

Until I found a better solution
---
 tests/run_test.pl | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/run_test.pl b/tests/run_test.pl
index 5d4da27c03..2f2707e42c 100755
--- a/tests/run_test.pl
+++ b/tests/run_test.pl
@@ -10,7 +10,6 @@ use File::Basename;
 use File::Find;
 use File::Spec;
 use File::Copy::Recursive qw(fcopy rcopy dircopy);
-use File::Which;
 use Tie::File;
 use Cwd;
 use Cwd 'abs_path';
@@ -75,6 +74,7 @@ if (exists $ENV{"PS2_AUTOTESTS_CFG"}) {
 my $status = Getopt::Long::GetOptions(
     'cfg=s'         => \$o_cfg,
     'cpu=i'         => \$o_max_cpu,
+    'cygwin'        => \$o_cygwin,
     'debug_me'      => \$o_debug_me,
     'dry_run'       => \$o_dry_run,
     'exe=s'         => \$o_exe,
@@ -126,9 +126,10 @@ unless (-d $o_cfg) {
     help();
 }
 
-if (defined(which("cygpath"))) {
-    $o_cygwin = 1;
-}
+#if (`uname -a` =~ /cygwin/) {
+#    print "Info: CYGWIN env detected\n";
+#    $o_cygwin = 1;
+#}
 
 if ($o_cygwin) {
     $o_cfg = `cygpath -w $o_cfg`;