[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 67/67] iotests.py: Drop qemu_img_log(), qemu_img_create()
From: |
Max Reitz |
Subject: |
[PATCH 67/67] iotests.py: Drop qemu_img_log(), qemu_img_create() |
Date: |
Tue, 1 Oct 2019 21:47:15 +0200 |
They are both unused now.
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/iotests.py | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 2e377b8379..2476f3744a 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -111,25 +111,6 @@ def ordered_qmp(qmsg, conv_keys=True):
return od
return qmsg
-def qemu_img_create(*args):
- args = list(args)
-
- # default luks support
- if '-f' in args and args[args.index('-f') + 1] == 'luks':
- if '-o' in args:
- i = args.index('-o')
- if 'key-secret' not in args[i + 1]:
- args[i + 1].append(luks_default_key_secret_opt)
- args.insert(i + 2, '--object')
- args.insert(i + 3, luks_default_secret_object)
- else:
- args = ['-o', luks_default_key_secret_opt,
- '--object', luks_default_secret_object] + args
-
- args.insert(0, 'create')
-
- return qemu_img(*args)
-
def create_test_image(filename, size=None, fmt=imgfmt, opts=[],
backing_file=None, backing_fmt=None,
objects=[], unsafe=False):
@@ -216,11 +197,6 @@ def qemu_img_pipe(*args):
(-exitcode, ' '.join(qemu_img_args + args)))
return subp.communicate()[0]
-def qemu_img_log(*args):
- result = qemu_img_pipe(*args)
- log(result, filters=[filter_testfiles])
- return result
-
def img_info_log(filename, filter_path=None, imgopts=False, extra_args=[],
hide_fields=[]):
args = [ 'info' ]
--
2.21.0
- [PATCH 57/67] iotests/245: Honor $IMGOPTS, (continued)
- [PATCH 57/67] iotests/245: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 60/67] iotests/254: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 59/67] iotests/248: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 61/67] iotests/255: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 58/67] iotests/246: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 62/67] iotests/256: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 63/67] iotests/257: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 64/67] iotests/258: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 65/67] iotests/262: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 66/67] iotests.py: Forbid qemu_img*('create', ...), Max Reitz, 2019/10/01
- [PATCH 67/67] iotests.py: Drop qemu_img_log(), qemu_img_create(),
Max Reitz <=
- Re: [PATCH 00/67] iotests: Honor $IMGOPTS in Python tests, John Snow, 2019/10/01