When the cutechess process dies, return to the main loop and check for a new workload
This commit is contained in:
1 parent
0958078b11
commit
bd478c4949
1 file changed
+1
-1
+1
-1
@@ -305,7 +305,6 @@ def reportResults(data, wins, losses, draws, crashes, timeloss):
|
|||||||
print ('<Warning> Unable to reach server')
|
print ('<Warning> Unable to reach server')
|
||||||
return "Unable"
|
return "Unable"
|
||||||
|
|
||||||
|
|
||||||
def completeWorkload(data):
|
def completeWorkload(data):
|
||||||
|
|
||||||
# Download and verify bench of dev engine
|
# Download and verify bench of dev engine
|
||||||
@@ -363,6 +362,7 @@ def completeWorkload(data):
|
|||||||
# Grab the next line of cutechess output
|
# Grab the next line of cutechess output
|
||||||
line = process.stdout.readline().strip().decode('ascii')
|
line = process.stdout.readline().strip().decode('ascii')
|
||||||
if line != '': print(line)
|
if line != '': print(line)
|
||||||
|
else: process.wait(); break
|
||||||
|
|
||||||
# Update the current score line
|
# Update the current score line
|
||||||
if line.startswith('Score of'):
|
if line.startswith('Score of'):
|
||||||
|
|||||||
Reference in new issue
Block a user