summaryrefslogtreecommitdiff
path: root/tests/test_cmdline_tool.py
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-09 15:42:53 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-09 15:42:53 (GMT)
commit74432b32069c99d056f0be1eaf9bd07eb67edba1 (patch)
treec0b7f505fa582d613cf2f86cc4f690b261db3953 /tests/test_cmdline_tool.py
parent2ab5a0cc9bae5c66b9050ba0d1e2f2f563091d17 (diff)
fix for when running under wine. also fix test_pretty_print bug
Diffstat (limited to 'tests/test_cmdline_tool.py')
-rwxr-xr-xtests/test_cmdline_tool.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_cmdline_tool.py b/tests/test_cmdline_tool.py
index a0dd14c..81a7795 100755
--- a/tests/test_cmdline_tool.py
+++ b/tests/test_cmdline_tool.py
@@ -150,6 +150,8 @@ def run_test(testname, cmd, args):
try:
if os.path.isfile(cmd+'.exe') and options.mingw_cross_env:
cmdline = ['wine']+[cmd+'.exe'] + args + [outputname]
+ elif cmd[-4:].lower() == '.exe' and options.mingw_cross_env:
+ cmdline = ['wine']+[cmd] + args + [outputname]
else:
cmdline = [cmd] + args + [outputname]
proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
contact: Jan Huwald // Impressum