summaryrefslogtreecommitdiff
path: root/scripts/Expect.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-10-23 16:18:37 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-10-23 16:18:37 +0200
commitf6cb6feef4187d8c222b1f994772641c6f68fdd4 (patch)
tree0ecb0ee84dff40b57b2478b7653f04ce643925c9 /scripts/Expect.py
parentFixed metrics test failures (diff)
downloadice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.tar.bz2
ice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.tar.xz
ice-f6cb6feef4187d8c222b1f994772641c6f68fdd4.zip
Test suite fixes
Diffstat (limited to 'scripts/Expect.py')
-rwxr-xr-xscripts/Expect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/Expect.py b/scripts/Expect.py
index 0a4f6632d2d..2515d57edc1 100755
--- a/scripts/Expect.py
+++ b/scripts/Expect.py
@@ -335,8 +335,11 @@ class Expect (object):
#
# universal_newlines = True is necessary for Python 3 on Windows
#
+ # We set shell=True to make sure executables are correctly searched
+ # in directories specified by the PATH environment variable.
+ #
CREATE_NEW_PROCESS_GROUP = 512
- self.p = subprocess.Popen(command, env = env, cwd = cwd, shell=False, bufsize=0, stdin=subprocess.PIPE,
+ self.p = subprocess.Popen(command, env = env, cwd = cwd, shell=True, bufsize=0, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
creationflags = CREATE_NEW_PROCESS_GROUP, universal_newlines=True)
else: