iotests.py: don't abort if IMGKEYSECRET is undefined
commit58ebcb65d8e38fd693bf1e58dd941a4d7a8dfdef
authorJohn Snow <jsnow@redhat.com>
Fri, 21 Dec 2018 09:35:23 +0000 (21 04:35 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 14 Jan 2019 16:09:46 +0000 (14 10:09 -0600)
tree39a5c1d91842e1febb3dfd43071cdfdc207effb9
parent0e2b7f09837f1e2828d428af1e4ebb61e3b3ea5f
iotests.py: don't abort if IMGKEYSECRET is undefined

Instead of using os.environ[], use .get with a default of empty string
to match the setup in check to allow us to import the iotests module
(for debugging, say) without needing a crafted environment just to
import the module.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20181221093529.23855-6-jsnow@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/iotests.py