tests/run-tests.py
branchstable
changeset 1282 f0c81b6d67c6
parent 1281 3dc7d29a42e9
child 1283 e1d949ad7cda
equal deleted inserted replaced
1281:3dc7d29a42e9 1282:f0c81b6d67c6
    74     processlock.acquire()
    74     processlock.acquire()
    75     p = subprocess.Popen(cmd, shell=True, bufsize=-1, cwd=wd, env=env,
    75     p = subprocess.Popen(cmd, shell=True, bufsize=-1, cwd=wd, env=env,
    76                          close_fds=closefds,
    76                          close_fds=closefds,
    77                          stdin=subprocess.PIPE, stdout=subprocess.PIPE,
    77                          stdin=subprocess.PIPE, stdout=subprocess.PIPE,
    78                          stderr=subprocess.STDOUT)
    78                          stderr=subprocess.STDOUT)
    79     p.wait = waitlocked(p.wait)
    79     if sys.version_info[1] < 5:
    80     p.poll = waitlocked(p.poll)
    80         p.wait = waitlocked(p.wait)
       
    81         p.poll = waitlocked(p.poll)
    81     processlock.release()
    82     processlock.release()
    82 
    83 
    83     p.fromchild = p.stdout
    84     p.fromchild = p.stdout
    84     p.tochild = p.stdin
    85     p.tochild = p.stdin
    85     p.childerr = p.stderr
    86     p.childerr = p.stderr