qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stitcher" <astitc...@apache.org>
Subject Re: Review Request 22273: In Proton python tests, start subprocesses with Popen(..., shell=os.name=="nt")
Date Wed, 11 Jun 2014 22:30:37 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/22273/#review45439
-----------------------------------------------------------



proton/trunk/tests/python/proton_tests/common.py
<https://reviews.apache.org/r/22273/#comment80302>

    Instead of using just 'python' use sys.executable. This will ensure that you run it using
the same python that is running now.


- Andrew Stitcher


On June 11, 2014, 2:20 p.m., Chug Rolke wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/22273/
> -----------------------------------------------------------
> 
> (Updated June 11, 2014, 2:20 p.m.)
> 
> 
> Review request for qpid, Andrew Stitcher and Rafael Schloming.
> 
> 
> Bugs: PROTON-595
>     https://issues.apache.org/jira/browse/PROTON-595
> 
> 
> Repository: qpid
> 
> 
> Description
> -------
> 
> Popen(file.py, ...) needs to run with shell=True on windows. On Linux the tests hang
when shell=True. This patch compromises by turning on the shell arg when running on windows.
> 
> Change the arg list to run Popen(python, file.py, ...) touches wider ranges of source
code with some risk and with no obvious benefit.
> 
> 
> Diffs
> -----
> 
>   proton/trunk/tests/python/proton_tests/common.py 1601492 
> 
> Diff: https://reviews.apache.org/r/22273/diff/
> 
> 
> Testing
> -------
> 
> Passes tests on linux and windows.
> 
> 
> Thanks,
> 
> Chug Rolke
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message