Run the given Popen process until completion and return stdout.
(p)
| 218 | |
| 219 | |
| 220 | def kill_python(p): |
| 221 | """Run the given Popen process until completion and return stdout.""" |
| 222 | p.stdin.close() |
| 223 | data = p.stdout.read() |
| 224 | p.stdout.close() |
| 225 | # try to cleanup the child so we don't appear to leak when running |
| 226 | # with regrtest -R. |
| 227 | p.wait() |
| 228 | subprocess._cleanup() |
| 229 | return data |
| 230 | |
| 231 | |
| 232 | def make_script(script_dir, script_basename, source, omit_suffix=False): |
searching dependent graphs…