Merge pull request #1997 from ludovic111/fix/server-ops-feedback-save-wait
🤖 Agent: ready. server_ops_feedback waits for vanilla's and Horizon's 'Saved the game' before the save step's 2 s, so a loaded runner (the desktop's full trial) no longer cuts the transcript. Harness only. verify passed; parity ran server_ops_feedback on the Mac: PASS 120 s.
This commit is contained in:
@@ -54,6 +54,9 @@ QUIET = [
|
||||
]
|
||||
CASES = {'broadcast': ({}, BROADCAST), 'quiet': ({'broadcast-console-to-ops': 'false'}, QUIET)}
|
||||
STEP_SECONDS = 2.0
|
||||
# Steps whose reply can take longer than a step: the next step waits for this console line first. A loaded machine
|
||||
# took 2 s to save vanilla's world, and the transcript ended before "Saved the game".
|
||||
WAIT_FOR = {'console-save': r'System chat: Saved the game'}
|
||||
|
||||
|
||||
def run_side(label, case, server_command, client_command, build, world):
|
||||
@@ -88,6 +91,8 @@ def run_side(label, case, server_command, client_command, build, world):
|
||||
server.console(command)
|
||||
for action in actions:
|
||||
tell(action)
|
||||
if step in WAIT_FOR:
|
||||
server.wait_for(WAIT_FOR[step], timeout=120)
|
||||
time.sleep(STEP_SECONDS)
|
||||
tell('end')
|
||||
client.wait(timeout=60)
|
||||
|
||||
Reference in New Issue
Block a user