From 9cf99b7457a6ed0e199a56785dad697bd4a09a58 Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 30 Nov 2023 19:38:01 -0800 Subject: [PATCH] Better error message when test does not complete (#769) --- .github/mcp/mcp_pytest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/mcp/mcp_pytest.py b/.github/mcp/mcp_pytest.py index 5f0aaa147b..b6d74880c8 100644 --- a/.github/mcp/mcp_pytest.py +++ b/.github/mcp/mcp_pytest.py @@ -130,7 +130,7 @@ print(line, end='') print('[GHA] Run completed. Waiting for run to finish...') - run = wait_for_run_status(run, status='completed') + run = wait_for_run_status(run, status=RunStatus.COMPLETED) - # Fail if command exited with non-zero exit code or timed out - assert run.status == RunStatus.COMPLETED + # Fail if command exited with non-zero exit code or timed out (didn't reach COMPLETED) + assert run.status == RunStatus.COMPLETED, f'Run did not complete: {run.status} ({run.reason})'