From bd478c49496d50f2040cfce7399bf69db3f21f83 Mon Sep 17 00:00:00 2001 From: AndyGrant Date: Sat, 5 Oct 2019 03:27:30 -0400 Subject: [PATCH] When the cutechess process dies, return to the main loop and check for a new workload --- Client/OpenBench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/OpenBench.py b/Client/OpenBench.py index b4dfa74..c02c631 100644 --- a/Client/OpenBench.py +++ b/Client/OpenBench.py @@ -305,7 +305,6 @@ def reportResults(data, wins, losses, draws, crashes, timeloss): print (' Unable to reach server') return "Unable" - def completeWorkload(data): # Download and verify bench of dev engine @@ -363,6 +362,7 @@ def completeWorkload(data): # Grab the next line of cutechess output line = process.stdout.readline().strip().decode('ascii') if line != '': print(line) + else: process.wait(); break # Update the current score line if line.startswith('Score of'):