summaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/common
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-05-10 17:11:28 +0100
committerMax Reitz <mreitz@redhat.com>2016-05-12 15:33:24 +0200
commitb7e875b2f98c2724b5f915f5808f8828fd9b05a8 (patch)
tree677b83ceeb94c450a605a94758ba2001161523d3 /tests/qemu-iotests/common
parent076003f526cebbf5bbef826f752019da5d2c3e89 (diff)
downloadqemu-b7e875b2f98c2724b5f915f5808f8828fd9b05a8.zip
block: add support for encryption secrets in block I/O tests
The LUKS block driver tests will require the ability to specify encryption secrets with block devices. This requires using the --object argument to qemu-img/qemu-io to create a 'secret' object. When the IMGKEYSECRET env variable is set, it provides the password to be associated with a secret called 'keysec0' The _qemu_img_wrapper function isn't modified as that needs to cope with differing syntax for subcommands, so can't be made to use the image opts syntax unconditionally. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1462896689-18450-3-git-send-email-berrange@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/common')
-rw-r--r--tests/qemu-iotests/common1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common
index fe3b1a0af8..e87287ca79 100644
--- a/tests/qemu-iotests/common
+++ b/tests/qemu-iotests/common
@@ -53,6 +53,7 @@ export QEMU_IO_OPTIONS=""
export CACHEMODE_IS_DEFAULT=true
export QEMU_OPTIONS="-nodefaults"
export VALGRIND_QEMU=
+export IMGKEYSECRET=
export IMGOPTSSYNTAX=false
for r