From patchwork Mon Feb 11 13:05:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 158006 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2596786jaa; Mon, 11 Feb 2019 05:26:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IaeXZT7XMePfpINeQVR8qPn5NK5XESCOlHx2PAZHTCcctWf2d2imls+WThd+lNnVE0oZRGz X-Received: by 2002:a81:3705:: with SMTP id e5mr13060035ywa.9.1549891571445; Mon, 11 Feb 2019 05:26:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549891571; cv=none; d=google.com; s=arc-20160816; b=VZ4k23jiugZkJ/3tXyHs3e61NsU1S3V2rvx0oX2dfkygVv0f7pDLcoHyC5ucbNWXfg V31PHECAfsnHp4SuzZPUbWxzh1Q6ECx4We3s7kBqPatw4cAoyr43VF5S5waqyEr0hoZc /6VOjgSTRKRLNo/Tv43Oy+0ZMHFlOQP2AtU/vj/9higd3BBc7WZGMZMCuRBpjwWsnRi8 dL04bVBZkOmKSwjVbZCeA7tKEPsb/vFhBhk+VrCHgsUTPsxDsAgGwZbyGrayp5hvfvvx gY93NWpHTibn/xNBg5XiA2cCsEC79wtr5uHtOqTmYy15mROx888UdnIHo8u+qZMTJ8aO BtrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=CYr2xPsykPj/7p5MvFTdAIDU/Wma9drz6MHg7aOm5k4=; b=Oz8zRsoU/g6z9rNCIlHNJ7+LbyGoIyzLFigjMFPrubje0fdovTcsk86XEs4TuTrPFz iSV/05EB5iuikzJ7Gp4i2Aj/3TJG4KB1u9Gb7qXNRE0dAkIZ7jAqXiZUtURXJKDnssLa wRNE3m7wK/Vyhv4QWV+qpvtzWDvXnvggEOmR9ElboYJ3ktEW/5XjoQofd/H37jlSjdPY 99Pf74gnD/VHZQts5ObqXHjCOAhmwz4bQjpuPLttnvu3OFVOcMcwSVd41Vv4pTbK1CY6 rZVPGPEdV8kM8JzLzxHFqLbn9ZmIFbIV4RjbTJBHuGIuAU4w1qBThbuNb3acApYSSH5A AZmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jSZFlEkt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t16si5556585ybp.329.2019.02.11.05.26.11 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 11 Feb 2019 05:26:11 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jSZFlEkt; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:50221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtBb8-0004RO-Vk for patch@linaro.org; Mon, 11 Feb 2019 08:26:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtBOX-0004YI-T1 for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:13:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtBOV-000093-Fd for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:13:09 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:37300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtBOU-000080-9t for qemu-devel@nongnu.org; Mon, 11 Feb 2019 08:13:06 -0500 Received: by mail-wm1-x342.google.com with SMTP id x10so11807030wmg.2 for ; Mon, 11 Feb 2019 05:13:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CYr2xPsykPj/7p5MvFTdAIDU/Wma9drz6MHg7aOm5k4=; b=jSZFlEktD8LSU/ygopxo/zleDtd8qm+l4mLETHGNA6jXCCQHJ+vlVyZAREy0a+wZ2d VuzSF/C988kWh/PAvIGpF3Rrs712DGDHeUTCM9TUFp9x/eyDYV4NYjblWkVXAnELF/kn XzynsetcceQwke5JNnsPvL3l8Mps/68TBeTgYZaCrUj9SkLMQ+YIRKQUTqx0Y4Dju7TO /ZKcwJh5BSUfiyob4iQ4I05rbYq/VyjUhgWul2G9dQyM1BCfzfmnkC/c8k5G/fKQj9qA 2f0G2+t3ynXT9SGBc9E8scwseHv7EPkIGQeNb0c+fOjD/FZ3hJ9nQGgDEbw4g3/piPhq ZM0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CYr2xPsykPj/7p5MvFTdAIDU/Wma9drz6MHg7aOm5k4=; b=FZQrOPW/tQoMdget5UmA8DKAvsyYoeW9OCPi8L+m3N+GvUJ56HyWeCftdpQfZEExT/ CUz6Mhot1peH9cjlvlKfQEMkGg4Ab41lKIIwmPsoOD43hihfz6I3rUi3XpPpD0jt64Cn Ir9LK26P+QnCoMOHqVXdjPLrvmQn3TZhoA9GZcREOUKZiaSs8rrUDuarULzVbME7yVOK I2aG0ZemCn30xJIP1OJfkSDA7xv+Yt2cKMUuvuRiDLeQ17AiQVPzTwgx7nUogvdnrb+Q PWvcAZujufYmSgK2Y6Erb7fDCGyp1cBLWVkjm2cxzE+qUvn18KHQXGcj6nwHaol1BTqN uDuQ== X-Gm-Message-State: AHQUAuYUIVPNlHys6FCBjG6PTmMyav5bN57zJZBKeB1yqNuJjO0jJSu1 jJYEVkHbu+w9UazqcEzuj3fm7g== X-Received: by 2002:a1c:a9d0:: with SMTP id s199mr2904649wme.142.1549890784796; Mon, 11 Feb 2019 05:13:04 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c18sm15536388wre.32.2019.02.11.05.13.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 05:13:03 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E69301FF92; Mon, 11 Feb 2019 13:05:07 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 11 Feb 2019 13:05:07 +0000 Message-Id: <20190211130507.8710-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211130507.8710-1-alex.bennee@linaro.org> References: <20190211130507.8710-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 Subject: [Qemu-devel] [PULL 18/18] tests/vm: Be verbose while extracting compressed images X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé 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é Message-Id: <20190129175403.18017-2-philmd@redhat.com> Signed-off-by: Alex Bennée -- 2.20.1 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() diff --git a/tests/vm/freebsd b/tests/vm/freebsd index 1d64c31b7c..b0066017a6 100755 --- a/tests/vm/freebsd +++ b/tests/vm/freebsd @@ -33,8 +33,9 @@ class FreeBSDVM(basevm.BaseVM): sha256sum='adcb771549b37bc63826c501f05121a206ed3d9f55f49145908f7e1432d65891') img_tmp_xz = img + ".tmp.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]) if os.path.exists(img): os.remove(img) os.rename(img_tmp, img) diff --git a/tests/vm/netbsd b/tests/vm/netbsd index a2c3d13af4..4c6624ea5e 100755 --- a/tests/vm/netbsd +++ b/tests/vm/netbsd @@ -33,8 +33,9 @@ class NetBSDVM(basevm.BaseVM): sha256sum='b633d565b0eac3d02015cd0c81440bd8a7a8df8512615ac1ee05d318be015732') img_tmp_xz = img + ".tmp.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]) if os.path.exists(img): os.remove(img) os.rename(img_tmp, img) diff --git a/tests/vm/openbsd b/tests/vm/openbsd index cfe0572c59..2105c01a26 100755 --- a/tests/vm/openbsd +++ b/tests/vm/openbsd @@ -35,8 +35,9 @@ class OpenBSDVM(basevm.BaseVM): sha256sum='8c6cedc483e602cfee5e04f0406c64eb99138495e8ca580bc0293bcf0640c1bf') img_tmp_xz = img + ".tmp.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]) if os.path.exists(img): os.remove(img) os.rename(img_tmp, img)