image-fuzzer: Encode file name and file format to bytes
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 16 Oct 2019 19:24:28 +0000 (16:24 -0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 5 Nov 2019 15:35:06 +0000 (16:35 +0100)
commit58b818d5bdcb89e89e60b7b1f68d808882186ccc
tree4cc20a1f1550dee0e1d6992b2ff864a728bcb5f2
parentee1fde71a343b9311b39aa3f8d56ba0330abe449
image-fuzzer: Encode file name and file format to bytes

Callers of create_image() will pass strings as arguments, but the
Image class will expect bytes objects to be provided.  Encode
them inside create_image().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20191016192430.25098-9-ehabkost@redhat.com
Message-Id: <20191016192430.25098-9-ehabkost@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/image-fuzzer/qcow2/layout.py