MDL-43461 testing: Avoid switching to .bat files when running MinGW

MinGW can not execute .bat files (http://sourceforge.net/p/mingw/bugs/1902)
so we should not switch to .bat files when running MinGW.
This commit is contained in:
David Monllao
2014-01-14 13:11:07 +08:00
parent 19a40b1468
commit ff7139d6cb
4 changed files with 33 additions and 3 deletions
+5 -1
View File
@@ -82,8 +82,12 @@ class behat_command {
// Cygwin uses linux-style directory separators.
if ($custombyterm && testing_is_cygwin()) {
$exec = 'behat.bat';
$separator = '/';
// MinGW can not execute .bat scripts.
if (!testing_is_mingw()) {
$exec = 'behat.bat';
}
}
return 'vendor' . $separator . 'bin' . $separator . $exec;
}