Skip to content

Commit

Permalink
Update markers_check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
w1nda authored Jan 17, 2025
1 parent 35f5d8b commit 3cca822
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .azure-pipelines/markers_check/markers_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ def collect_scripts_without_topology_markers():
script_name = s[len(location) + 1:]
try:
with open(s, 'r') as script:
for line in script:
# Get topology type of script from marker `pytest.mark.topology`
match = pattern.search(line)
if match:
has_markers = True
break
match = pattern.search(script.read())
if match:
has_markers = True
break

if not has_markers:
scripts_without_marker.append(script_name)
Expand Down

0 comments on commit 3cca822

Please sign in to comment.