Skip to content

Commit 5cc8fd5

Browse files
authored
move tc link logic (#701)
1 parent 1efb63c commit 5cc8fd5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/testrail_integration.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,6 @@ def organize_l10n_entries(
352352
if len(site_entries) != 1:
353353
logging.info("Suite entries are broken somehow")
354354

355-
# Add execution link to plan description
356-
357-
os_name = config.split(" ")[0]
358-
description = replace_link_in_description(expected_plan["description"], os_name)
359-
testrail_session.update_plan(plan_id, description=description)
360-
361355
# There should only be one entry per site per plan
362356
# Check that this entry has a run with the correct config
363357
# And if not, make that run
@@ -662,6 +656,12 @@ def collect_changes(testrail_session: TestRail, report):
662656
logging.info(f"Plan found ({expected_plan.get('id')}) but is completed.")
663657
return None
664658

659+
# Add execution link to plan description
660+
661+
os_name = config.split(" ")[0]
662+
description = replace_link_in_description(expected_plan["description"], os_name)
663+
testrail_session.update_plan(expected_plan["id"], description=description)
664+
665665
# Find or add correct config for session
666666

667667
config_matches = None

0 commit comments

Comments
 (0)