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

This commit is contained in:
Garret Rieger 2018-03-06 17:47:40 -08:00
parent bfec28a7db
commit 9b00b9a10d
1 changed files with 3 additions and 3 deletions

View File

@ -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: