From 9b00b9a10d5fdfd2d9deb1b0e847695797b7e09b Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Tue, 6 Mar 2018 17:47:40 -0800 Subject: [PATCH] [subset] Fix deadlock waiting for process output in subset test runner. --- test/subset/run-tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/subset/run-tests.py b/test/subset/run-tests.py index 072a49d5f..4c77de097 100755 --- a/test/subset/run-tests.py +++ b/test/subset/run-tests.py @@ -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: