From f130ebec1e20a47f4b891c9bb71b4e9905386462 Mon Sep 17 00:00:00 2001 From: jianquanye Date: Fri, 16 Jun 2023 13:42:46 +0800 Subject: [PATCH] [CI/CD] compatible with 'steps' migration --- .azure-pipelines/test_plan.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/test_plan.py b/.azure-pipelines/test_plan.py index b759dfe3a82..7b85e090162 100644 --- a/.azure-pipelines/test_plan.py +++ b/.azure-pipelines/test_plan.py @@ -352,9 +352,11 @@ def poll(self, test_plan_id, interval=60, timeout=-1, expected_state=""): steps = None step_status = None extra_params = resp_data.get("extra_params", None) - - if extra_params: + runtime = resp_data.get("runtime", None) + if extra_params and "steps" in extra_params: steps = extra_params.get("steps", None) + else: + steps = runtime.get("steps", None) if steps: for step in steps: if step.get("step") == expected_state: