diff options
| author | Hanna Reitz | 2021-09-02 11:40:17 +0200 |
|---|---|---|
| committer | Hanna Reitz | 2021-09-15 15:54:07 +0200 |
| commit | 098d983ea5ff1e2b504902d6081074f6b3bf36b8 (patch) | |
| tree | d09f514480181556aba2e986c993c1a1b7bd73c1 /tests | |
| parent | mirror-top-perms: Fix AbnormalShutdown path (diff) | |
| download | qemu-098d983ea5ff1e2b504902d6081074f6b3bf36b8.tar.gz qemu-098d983ea5ff1e2b504902d6081074f6b3bf36b8.tar.xz qemu-098d983ea5ff1e2b504902d6081074f6b3bf36b8.zip | |
iotests/297: Cover tests/
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>
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/qemu-iotests/297 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/qemu-iotests/297 b/tests/qemu-iotests/297 index a0c0cf9e5d..b04cba5366 100755 --- a/tests/qemu-iotests/297 +++ b/tests/qemu-iotests/297 @@ -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))) |
