docker.py/build: support binary files in --extra-files
commitaf509738f8e4400c26d321abeac924efb04fbfa0
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Apr 2020 16:19:43 +0000 (22 12:19 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:09:31 +0000 (10 12:09 -0400)
tree8e63fabbd613b12d3d4a3e8ec7f68b09a3d31d28
parentdfae62845961556935c6b8ccbb4285d4688c42b4
docker.py/build: support binary files in --extra-files

Read the --extra-files in binary mode to avoid encoding errors.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/docker/docker.py