test: Treat MSYS(2) shells also as Windows
Quoting [1] for some background information: "MSYS2 consists of three subsystems and their corresponding package repositories, msys2, mingw32, and mingw64. The mingw subsystems provide native Windows programs and are the main focus of the project. These programs are built to co-operate well with other Windows programs, independently of the other subsystems. The msys2 subsystem provides an emulated mostly-POSIX-compliant environment for building software, package management, and shell scripting. These programs live in a virtual single-root filesystem (the root is the MSYS2 installation directory). Some effort is made to have the programs work well with native Windows programs, but it's not seamless. [...] Every subsystem has an associated "shell", which is essentially a set of environment variables that allow the subsystems to co-operate properly. These shells can be invoked using scripts in the MSYS2 installation directory or shortcuts in the Start menu. The scripts set the MSYSTEM variable and start a terminal emulator with bash. Bash in turn sources /etc/profile which sets the environment depending on the value of MSYSTEM." [1] https://sourceforge.net/p/msys2/wiki/MSYS2%20introduction/
This commit is contained in:
parent
208c0b61c1
commit
d81df7c3f0
@ -6,7 +6,7 @@ set -e
|
||||
UNAME=$(uname -s)
|
||||
IS_WINDOWS=0
|
||||
IS_MAC=0
|
||||
if [[ $UNAME == MINGW* || $UNAME == CYGWIN* ]]
|
||||
if [[ $UNAME == MINGW* || $UNAME == MSYS* || $UNAME == CYGWIN* ]]
|
||||
then
|
||||
IS_WINDOWS=1
|
||||
elif [[ $UNAME == *Darwin* ]]
|
||||
|
Loading…
Reference in New Issue
Block a user