summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-11-16 18:16:38 +0200
committerJukka Jylänki <jujjyl@gmail.com>2013-11-17 22:06:01 +0200
commitba1d21daa8812d3b5216df538e7c1a0b180bef00 (patch)
tree56232d45cf7e51a6c0d18d4e84a334d02060f960 /tests
parentae5212d9d4059de34aad570192e68d12d21f6308 (diff)
Fix test browser.test_sdl_image_compressed on Windows when the system does not have Cygwin make, but does have MinGW32 make.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_browser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py
index 1936bb39..3ad2087e 100644
--- a/tests/test_browser.py
+++ b/tests/test_browser.py
@@ -85,7 +85,10 @@ If manually bisecting:
cwd = os.getcwd()
try:
os.chdir(path_from_root('third_party', 'lzma.js'))
- Popen(['sh', './doit.sh']).communicate()
+ if WINDOWS and Building.which('mingw32-make'): # On Windows prefer using MinGW make if it exists, otherwise fall back to hoping we have cygwin make.
+ Popen(['doit.bat']).communicate()
+ else:
+ Popen(['sh', './doit.sh']).communicate()
finally:
os.chdir(cwd)