1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-10-02 02:17:21 +00:00

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

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",