提交 9b00b9a1 编写于 作者: G Garret Rieger

[subset] Fix deadlock waiting for process output in subset test runner.

上级 bfec28a7
......@@ -19,9 +19,9 @@ from subset_test_suite import SubsetTestSuite
def cmd(command):
p = subprocess.Popen (
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.wait ()
print (p.stderr.read (), end="") # file=sys.stderr
return p.stdout.read (), p.returncode
(stdoutdata, stderrdata) = p.communicate()
print (stderrdata, end="") # file=sys.stderr
return stdoutdata, p.returncode
def read_binary(file_path):
with open(file_path, 'rb') as f:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册