diff options
author | Philippe Mathieu-Daudé | 2019-01-29 18:53:46 +0100 |
---|---|---|
committer | Alex Bennée | 2019-02-11 13:47:08 +0100 |
commit | 920fff9093db26f3e74858e3d4182b74a6da7496 (patch) | |
tree | f7379c2a6d51dcf485ac2c502dd46b01eadf057e /tests/vm/centos | |
parent | docs/devel/testing: Add -a option to usermod command on docker setup (diff) | |
download | qemu-920fff9093db26f3e74858e3d4182b74a6da7496.tar.gz qemu-920fff9093db26f3e74858e3d4182b74a6da7496.tar.xz qemu-920fff9093db26f3e74858e3d4182b74a6da7496.zip |
tests/vm: Be verbose while extracting compressed images
Depending of the host hardware, copying and extracting VM images can
take up to few minutes. Add verbosity to avoid the user to worry about
VMs hanging.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190129175403.18017-2-philmd@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/vm/centos')
-rwxr-xr-x | tests/vm/centos | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/vm/centos b/tests/vm/centos index daa2dbca03..ba133ea429 100755 --- a/tests/vm/centos +++ b/tests/vm/centos @@ -65,8 +65,9 @@ class CentosVM(basevm.BaseVM): def build_image(self, img): cimg = self._download_with_cache("https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-1802.qcow2.xz") img_tmp = img + ".tmp" + sys.stderr.write("Extracting the image...\n") subprocess.check_call(["cp", "-f", cimg, img_tmp + ".xz"]) - subprocess.check_call(["xz", "-df", img_tmp + ".xz"]) + subprocess.check_call(["xz", "-dvf", img_tmp + ".xz"]) subprocess.check_call(["qemu-img", "resize", img_tmp, "50G"]) self.boot(img_tmp, extra_args = ["-cdrom", self._gen_cloud_init_iso()]) self.wait_ssh() |