mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-30 15:00:34 +00:00
8bb3b023f2
This patch adds a new test file to exercise the case where qemu-img fails to complete for the LUKS format when a non-UTF8 secret is used. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20200130213907.2830642-5-danielhb413@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
12 lines
531 B
Plaintext
12 lines
531 B
Plaintext
QA output created by 282
|
|
== Create non-UTF8 secret ==
|
|
== Throws an error because of invalid UTF-8 secret ==
|
|
qemu-img: vol.img: Data from secret sec0 is not valid UTF-8
|
|
Formatting 'vol.img', fmt=luks size=4194304 key-secret=sec0
|
|
== Image file should not exist after the error ==
|
|
== Create a stub image file and run qemu-img again ==
|
|
qemu-img: vol.img: Data from secret sec0 is not valid UTF-8
|
|
Formatting 'vol.img', fmt=luks size=4194304 key-secret=sec0
|
|
== Pre-existing image file should also be deleted after the error ==
|
|
*** done
|