From 00dea566f266b2ccc181686cfba3ec9993bbbbc5 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sun, 24 Jan 2016 18:18:13 +0100 Subject: [PATCH] tests: auto detect cygwin --- tests/run_test.pl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/run_test.pl b/tests/run_test.pl index a496a92ece..755e1bcaef 100755 --- a/tests/run_test.pl +++ b/tests/run_test.pl @@ -87,6 +87,12 @@ my $status = Getopt::Long::GetOptions( 'suite=s' => \$o_suite, ); +# Auto detect cygwin mess +if (-e "/cydrive") { + print "Info: CYGWIN OS detected. Update path accordingly\n"; + $o_cygwin = 1; +} + ##################################################### # Check option ##################################################### @@ -126,11 +132,6 @@ unless (-d $o_cfg) { help(); } -#if (`uname -a` =~ /cygwin/) { -# print "Info: CYGWIN env detected\n"; -# $o_cygwin = 1; -#} - my %blacklist; if (defined $o_regression) { # Blacklist bad test