@ECHO OFF IF "%XONSH_TEST_ENV%" == "MSYS2" ( echo "MSYS2 Environment" REM We monkey path `py._path.local.PosixPath` here such that it does not REM allow to create symlinks which are not supported by MSYS2 anyway. As a REM result the other pytest code uses a workaround. SET "PATH=%MSYS2_PATH%\usr\bin;%PATH%" call bash.exe -c "/usr/bin/xonsh run-tests.xsh" || EXIT 1 ) ELSE ( echo "Windows Environment" SET "PATH=%PYTHON%\Scripts;%PATH%" call xonsh run-tests.xsh || EXIT 1 )