Skip to content

Commit

Permalink
iotests/297: Cover tests/
Browse files Browse the repository at this point in the history
297 so far does not check the named tests, which reside in the tests/
directory (i.e. full path tests/qemu-iotests/tests).  Fix it.

Thanks to the previous two commits, all named tests pass its scrutiny,
so we do not have to add anything to SKIP_FILES.

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210902094017.32902-6-hreitz@redhat.com>
  • Loading branch information
XanClic committed Sep 15, 2021
1 parent b90d7a1 commit 098d983
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/qemu-iotests/297
Expand Up @@ -55,8 +55,9 @@ def is_python_file(filename):


def run_linters():
files = [filename for filename in (set(os.listdir('.')) - set(SKIP_FILES))
if is_python_file(filename)]
named_tests = [f'tests/{entry}' for entry in os.listdir('tests')]
check_tests = set(os.listdir('.') + named_tests) - set(SKIP_FILES)
files = [filename for filename in check_tests if is_python_file(filename)]

iotests.logger.debug('Files to be checked:')
iotests.logger.debug(', '.join(sorted(files)))
Expand Down

0 comments on commit 098d983

Please sign in to comment.