Author: chug Date: Fri Jun 6 18:53:29 2014 New Revision: 1600981 URL: http://svn.apache.org/r1600981 Log: PROTON-595: Accomodate windows when launching Popen(xxx.py,...)
Detects running on windows and in that case runs Popen with shell=True. Modified: qpid/proton/trunk/tests/python/proton_tests/common.py Modified: qpid/proton/trunk/tests/python/proton_tests/common.py URL: http://svn.apache.org/viewvc/qpid/proton/trunk/tests/python/proton_tests/common.py?rev=1600981&r1=1600980&r2=1600981&view=diff ============================================================================== --- qpid/proton/trunk/tests/python/proton_tests/common.py (original) +++ qpid/proton/trunk/tests/python/proton_tests/common.py Fri Jun 6 18:53:29 2014 @@ -343,8 +343,9 @@ class MessengerApp(object): print("COMMAND='%s'" % str(cmd)) #print("ENV='%s'" % str(os.environ.copy())) try: - self._process = Popen(cmd, stdout=PIPE, stderr=STDOUT, bufsize=4096) + self._process = Popen(cmd, stdout=PIPE, stderr=STDOUT, bufsize=4096, shell=os.name=="nt") except OSError, e: + print("ERROR: '%s'" % e) assert False, "Unable to execute command '%s', is it in your PATH?" % cmd[0] self._ready() # wait for it to initialize --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org