diff options
| author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-12-23 17:01:26 +0100 |
|---|---|---|
| committer | Hanna Reitz <hreitz@redhat.com> | 2022-02-01 10:51:39 +0100 |
| commit | 3bd2b942d9a8a10bb7a504a1ecf4a3e70803840e (patch) | |
| tree | c273e90945c7b1146ca9655b3bff7f37908cf24e /tests/qemu-iotests/iotests.py | |
| parent | fc2c3996a59683685a663deb3af12183ad24e4a7 (diff) | |
| download | focaccia-qemu-3bd2b942d9a8a10bb7a504a1ecf4a3e70803840e.tar.gz focaccia-qemu-3bd2b942d9a8a10bb7a504a1ecf4a3e70803840e.zip | |
iotests.py: img_info_log(): rename imgopts argument
We are going to support IMGOPTS environment variable like in bash tests. Corresponding global variable in iotests.py should be called imgopts. So to not interfere with function argument, rename it in advance. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20211223160144.1097696-2-vsementsov@virtuozzo.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
| -rw-r--r-- | tests/qemu-iotests/iotests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 1e2f2391d1..30a8837ea2 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -227,9 +227,10 @@ def qemu_img_log(*args): log(result, filters=[filter_testfiles]) return result -def img_info_log(filename, filter_path=None, imgopts=False, extra_args=()): +def img_info_log(filename, filter_path=None, use_image_opts=False, + extra_args=()): args = ['info'] - if imgopts: + if use_image_opts: args.append('--image-opts') else: args += ['-f', imgfmt] |