Skip to content

Commit

Permalink
fix(#4299): Adapt reliability tests to Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
GGP1 committed Sep 8, 2023
1 parent 5d3c597 commit b16c4d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ artifacts_path = '/docs/agent_groups'

with open(cluster_log_files) as file:
for line in file.readlines():
if result := logs_format.search(line):
result = logs_format.search(line)
if result:
if 'Worker' in result.group(1):
name = re.search('.*Worker (.*?)]', result.group(1)).group(1)
if name not in all_managers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def test_check_logs_order_master(artifacts_path):

with open(cluster_log_files) as file:
for line in file.readlines():
if result := logs_format.search(line):
result = logs_format.search(line)
if result:
node_name = result.group(1)
if 'Worker' in node_name:
name = re.search('.*Worker (.*?)]', node_name).group(1)
Expand Down

0 comments on commit b16c4d0

Please sign in to comment.