mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
iotests/149: Remove qemu_img_pipe() call
qemu_img_pipe calls blank their output when the command being run is a 'create' call and the command succeeds. Thus, the normative output for this command in iotest 149 is to print a blank line. We can remove the logging from this invocation and use a checked invocation, but we still need to inspect the actual output to see if we want to retroactively skip the test due to missing cipher support. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220321201618.903471-14-jsnow@redhat.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
This commit is contained in:
parent
3d53818ff7
commit
88baae552d
2 changed files with 5 additions and 23 deletions
|
@ -265,8 +265,11 @@ def qemu_img_create(config, size_mb):
|
|||
"%dM" % size_mb]
|
||||
|
||||
iotests.log("qemu-img " + " ".join(args), filters=[iotests.filter_test_dir])
|
||||
iotests.log(check_cipher_support(config, iotests.qemu_img_pipe(*args)),
|
||||
filters=[iotests.filter_test_dir])
|
||||
try:
|
||||
iotests.qemu_img(*args)
|
||||
except subprocess.CalledProcessError as exc:
|
||||
check_cipher_support(config, exc.output)
|
||||
raise
|
||||
|
||||
def qemu_io_image_args(config, dev=False):
|
||||
"""Get the args for access an image or device with qemu-io"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue