check-needles: ignore commented lines

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-05-28 09:13:30 -07:00
parent cb4654e2a2
commit 990f81b229
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ for testpath in testpaths:
with open(testpath, "r") as testfh:
testlines = testfh.readlines()
for line in testlines:
# ignore comments
if line.strip().startswith("#"):
continue
matchfuncs = (
"assert_screen",
"assert_and_click",