|
@@ -76,7 +76,7 @@ class EncryptionSetupTestCase(iotests.QMPTestCase):
|
|
|
# create the encrypted block device using qemu-img
|
|
|
def createImg(self, file, secret):
|
|
|
|
|
|
- output = iotests.qemu_img_pipe(
|
|
|
+ iotests.qemu_img(
|
|
|
'create',
|
|
|
'--object', *secret.to_cmdline_object(),
|
|
|
'-f', iotests.imgfmt,
|
|
@@ -84,8 +84,7 @@ class EncryptionSetupTestCase(iotests.QMPTestCase):
|
|
|
'-o', 'iter-time=10',
|
|
|
file,
|
|
|
'1M')
|
|
|
-
|
|
|
- iotests.log(output, filters=[iotests.filter_test_dir])
|
|
|
+ iotests.log('')
|
|
|
|
|
|
# attempts to add a key using qemu-img
|
|
|
def addKey(self, file, secret, new_secret):
|
|
@@ -99,7 +98,7 @@ class EncryptionSetupTestCase(iotests.QMPTestCase):
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- output = iotests.qemu_img_pipe(
|
|
|
+ output = iotests.qemu_img(
|
|
|
'amend',
|
|
|
'--object', *secret.to_cmdline_object(),
|
|
|
'--object', *new_secret.to_cmdline_object(),
|
|
@@ -108,8 +107,9 @@ class EncryptionSetupTestCase(iotests.QMPTestCase):
|
|
|
'-o', 'new-secret=' + new_secret.id(),
|
|
|
'-o', 'iter-time=10',
|
|
|
|
|
|
- "json:" + json.dumps(image_options)
|
|
|
- )
|
|
|
+ "json:" + json.dumps(image_options),
|
|
|
+ check=False # Expected to fail. Log output.
|
|
|
+ ).stdout
|
|
|
|
|
|
iotests.log(output, filters=[iotests.filter_test_dir])
|
|
|
|