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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user