From nobody Sat Feb 7 07:04:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530200428709859.8054829848525; Thu, 28 Jun 2018 08:40:28 -0700 (PDT) Received: from localhost ([::1]:37184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYZ23-0005Lj-US for importer@patchew.org; Thu, 28 Jun 2018 11:40:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYYxg-0002BX-Hu for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:35:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYYxf-0000tt-JB for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:35:56 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:42117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYYxf-0000so-Ea for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:35:55 -0400 Received: by mail-qk0-x243.google.com with SMTP id u62-v6so3204480qkf.9 for ; Thu, 28 Jun 2018 08:35:55 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id f36-v6sm4746179qtb.36.2018.06.28.08.35.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 08:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fEZAKYQ64u0zd2w5Rm+ecKRCcn6bPgBHIJmlVNE+6Qo=; b=aMGimyoUG8PERUR0BhfkR1qTdVxFfIaB1AFQ53wMhpSRdTcB1N9JtD2+WtntJASlY4 jK6QWcWZJToQ5LstfCrWmxSvTxnEfcknrrWKLh7ltEdsCODxH6/4WOmQW94R5gv7iVyg VLZ9+h0zz/24qWjHs9LQYaOXsBprr6IyvdLnl0KaWslXpKku8wO9OFS8cSdGlMK01G0h mO9I2csjWnckk7izy2tzKZPyLgwtkpqZ2+S2iiIYTUkb+qgTDJ4SQzKg/hFXqmGJDe/i Sx9nE4B4FepBLqO/cOIxR4qWpJqZ4Ft2d+XdZUbGeUsbDqJShcuzW6ZYy70tfVxRgHOP ybDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=fEZAKYQ64u0zd2w5Rm+ecKRCcn6bPgBHIJmlVNE+6Qo=; b=ehKqwi3P/T9lxLoY/j3QXaVhIgzMYPpKgbH/TyC0FOD4/2hX0XGVLD0ma0HCck9+Oc Yq9OBe+A9zwgjlh9ZEiwfWbHetkythtER21Q7HPGEvaUtr+UKaOiN/hpEEHz/l8DOzvv 2xYZ39lIUTH8eGM1EjdqDyhxYHnsiJMW5vtQ8IsOOn4JY/qcPuQEgd1VsgIRU6Z2Ib1D Qi0p00UjlzJWdU3uw8O2Jq6Grh239PUSpZf+r4LNIP+wTTIszIrr2LNHwFqdng7BkXqT DKrMXeLjddSOvjF6qZLyPWOQ0aXlcAXYn5vl4UVjwU34nMA6ouJ2GPhYVVBeoNILGdFB WkmA== X-Gm-Message-State: APt69E1AnS5GB4GE+VnRS+VMISN7ZzFjCatC0qsHYdDK4N+spWrmT5tm +pQrBJIAbda07L7nWFGSPaU= X-Google-Smtp-Source: AAOMgpfV0SHB5Yzfde/IXp8q9HX1TMpNXbScjvzbE3p95CBkanvxYLoEhoelBMPEyUpYoXcURIwx2Q== X-Received: by 2002:a37:6688:: with SMTP id a130-v6mr9493145qkc.20.1530200154905; Thu, 28 Jun 2018 08:35:54 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng Date: Thu, 28 Jun 2018 12:35:32 -0300 Message-Id: <20180628153535.1411-2-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180628153535.1411-1-f4bug@amsat.org> References: <20180628153535.1411-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::243 Subject: [Qemu-devel] [PATCH 1/4] tests/vm: Support proxy / corporate firewall 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?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 If ftp_proxy/http_proxy/https_proxy standard environment variables are available, pass them to the vm images. As per 06cc3551714: This is required when building behind corporate proxy/firewall, but also help when using local cache server (ie: apt/yum). Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/vm/ubuntu.i386 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386 index fc319e0e6e..be16ceed50 100755 --- a/tests/vm/ubuntu.i386 +++ b/tests/vm/ubuntu.i386 @@ -68,6 +68,10 @@ class UbuntuX86VM(basevm.BaseVM): self.boot(img_tmp, extra_args =3D ["-cdrom", self._gen_cloud_init_= iso()]) self.wait_ssh() self.ssh_root_check("touch /etc/cloud/cloud-init.disabled") + for k, v in os.environ.iteritems(): + kl =3D k.lower() + if kl in ['ftp_proxy', 'http_proxy', 'https_proxy']: + self.ssh_root_check("echo 'Acquire::{}::Proxy \"{}\";' >> = /etc/apt/apt.conf.d/01proxy".format(kl[:-6].upper(), v)) self.ssh_root_check("apt-get update") self.ssh_root_check("apt-get install -y cloud-initramfs-growroot") # Don't check the status in case the guest hang up too quickly --=20 2.18.0 From nobody Sat Feb 7 07:04:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530200408896784.0669063456555; Thu, 28 Jun 2018 08:40:08 -0700 (PDT) Received: from localhost ([::1]:37182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYZ1k-0005Cy-5C for importer@patchew.org; Thu, 28 Jun 2018 11:40:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYYxq-0002Iz-W2 for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYYxn-0001By-Ro for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:07 -0400 Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:36176) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYYxn-0001B9-Np for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:03 -0400 Received: by mail-qt0-x231.google.com with SMTP id o9-v6so5102220qtp.3 for ; Thu, 28 Jun 2018 08:36:03 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id f36-v6sm4746179qtb.36.2018.06.28.08.35.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 08:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FzptQZCHFgQGTzj7keqZEBzAwCqp1V2INkJqVtbOnBo=; b=XYPkVH67Yda6wXylnN8HOwA5fRVekTn6b0bnXwAmMU2a3CX8XCaNH+85nsmOLhpEBg 9osU78REc8XPmOC+9F9AixU3abRRiu7WQReA5/3OFWGH2OvMPEHoy0vqi0W5QYD6yKl5 7bqhWGaV28mYMVYlY8luIi9CloikOZBtolX41UHopJAgINTyoYffHfWPK2F6s6WevUC7 5MO1DdGyGEjy77ucfzbJe0ijvhwlHjM7FbzCbtRG4sEv1jUVA+SeS9qGr1JYDe80WyPD 1k2a0UubFuZX8irHCvyEooe4pHk3IqPgpZTEky5/IacH7gXso4Z5cwyo5ptu2GUiv9UY 16hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=FzptQZCHFgQGTzj7keqZEBzAwCqp1V2INkJqVtbOnBo=; b=F49sVjBeQJSi4jtn8UcdR90CLapSgs+QbRUZUn/K2JCLuCm1zsWMxJzAFKLVzW9ax/ VlNtGjRTA4wMlutI1GBZL+ui7UEYNNf2SmrNAAduPHDT7CbiOzf0eRA8TJP2ZpxKwH3Q zdX9V/wvxflGaFt6bRymVaUL9aabbarUtG+bT8SSbd1RrxSupqVpmT6V23fiPHQr23ak ywVtv2ejpT8VUVNDbtfDyacsP/38OxavBnE7IuB/vC5OeSSfXR87iLfD8RFVLRqw2hf8 hxwlxrZP55atNAqj0+F+DqimmxvCxKBxl9PpfSsGk3cOIQQpXdS7+fSxAsBJSvAqweYn R7lA== X-Gm-Message-State: APt69E1SHRjYs8gWBO3+Nc3jguxrBaA+de31NZk34SiliAeW4QH+Jna+ BtNU4sPbMsuLbbAW4zAeOcityvN0 X-Google-Smtp-Source: AAOMgpde1yWTLE1NPjMHq6OlivBzzOEAK4BLhyXPaSqDR9z/Qrm45funVK2vHqdn40Eluaevv5+HgA== X-Received: by 2002:ac8:4703:: with SMTP id f3-v6mr9948503qtp.176.1530200163223; Thu, 28 Jun 2018 08:36:03 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng Date: Thu, 28 Jun 2018 12:35:33 -0300 Message-Id: <20180628153535.1411-3-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180628153535.1411-1-f4bug@amsat.org> References: <20180628153535.1411-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::231 Subject: [Qemu-devel] [PATCH 2/4] tests/vm: Add a dependency to qemu-img 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?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Before the first use, the VM image are resized with qemu-img. Add a dependency to the qemu-img tool to fix: $ make vm-build-ubuntu.i386 Traceback (most recent call last): File "source/qemu/tests/vm/basevm.py", line 236, in main return vm.build_image(args.image) File "tests/vm/ubuntu.i386", line 67, in build_image subprocess.check_call(["qemu-img", "resize", img_tmp, "50G"]) OSError: [Errno 2] No such file or directory tests/vm/Makefile.include:23: recipe for target 'tests/vm/ubuntu.i386.img= ' failed make: *** [tests/vm/ubuntu.i386.img] Error 2 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/vm/Makefile.include | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include index 5daa2a3b73..e5e8146267 100644 --- a/tests/vm/Makefile.include +++ b/tests/vm/Makefile.include @@ -17,10 +17,13 @@ vm-test: =20 vm-build-all: $(addprefix vm-build-, $(IMAGES)) =20 +$(IMAGE_FILES): qemu-img$(EXESUF) + tests/vm/%.img: $(SRC_PATH)/tests/vm/% \ $(SRC_PATH)/tests/vm/basevm.py \ $(SRC_PATH)/tests/vm/Makefile.include $(call quiet-command, \ + PATH=3D$(PATH):. \ $< \ $(if $(V)$(DEBUG), --debug) \ --image "$@" \ --=20 2.18.0 From nobody Sat Feb 7 07:04:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530200571837561.7306942195972; Thu, 28 Jun 2018 08:42:51 -0700 (PDT) Received: from localhost ([::1]:37201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYZ4N-0007TY-25 for importer@patchew.org; Thu, 28 Jun 2018 11:42:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYYxz-0002Ov-QT for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYYxw-0001YC-Ng for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:15 -0400 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:33933) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYYxw-0001Wy-Ht for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:12 -0400 Received: by mail-qt0-x243.google.com with SMTP id d23-v6so5116275qtp.1 for ; Thu, 28 Jun 2018 08:36:12 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id f36-v6sm4746179qtb.36.2018.06.28.08.36.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 08:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BdexD4LcKWMd1F/S3FptD3wSVVOG4j40AUjoyVxtuWg=; b=X4a/SJ0nXG+2aas0ynfIuA7T49Kyia/I/yw65wVEyNJrGUXSnm7niZD74XDHuItU9f z8U/FvAzMyrAWHh0GzSJ961/g6k+hSLRFfgqAckIz7fnNyOQh0lqrGwYC9KwxdzDp+hW kj8wMIGrb9r8I044K7yXEXzoJY0deJiPk8UZVAoY6uDClpVUL9RHV/jm7ZdGoFWqhFV/ C3/O8odwQX14zwsFMzWuX4Qxri1DpHUshU00WZckOBd96NZ6UvKA07G+wawFIYY4imbc YJ24Z+2xjb5Rjxy4x3Spg2QtFXDcwyY2njH81wWaTbaUk05E0cA4gnKJoNmRjWrpzq7p NfBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=BdexD4LcKWMd1F/S3FptD3wSVVOG4j40AUjoyVxtuWg=; b=U4g3rrjvywVqLdfeH5qVVQMC3b3jDTQNO5n6oJyyK4MmcWYRz4aU5lAiN2BGxoqdOs 40dDs1QK7kUy51NT6FFh2ac4qpLivyfrpxrj1m/WPcz8Zt/TqWV8JTimqYLPJzvJdBxc +5FqLKJviQcnqhvJZOW9cx8Mf16aVMA/jebVPMru9CIxhylHz+8+F3ZoyQGOLI9VWjTg aw5+aSnSRbh1rHwZrmqf35JS1pCtPuJ7NlDdugN2DYNjSc24OgojtNwli8XZ2/2G01L7 rvvuinUBg1jHZudGJjAKwiWMOESnsWMi/PfaHEVFf2nBJo84bBJBPvekTICYVsyKLrI+ j9XQ== X-Gm-Message-State: APt69E3Rw/DYsiQxZfq3/JZv2XpBWcw27HFyzq2OsBufZUV7n4uZIC4d YAulLhVKem5XssChS0CDa0k= X-Google-Smtp-Source: AAOMgpeU8aDjpN6XQ03iseTekg7fLggwHaF6jzZCwZlzascYawX/9qVQXx5xSV615kapumnwWTJLMg== X-Received: by 2002:aed:3607:: with SMTP id e7-v6mr9747691qtb.385.1530200171990; Thu, 28 Jun 2018 08:36:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng Date: Thu, 28 Jun 2018 12:35:34 -0300 Message-Id: <20180628153535.1411-4-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180628153535.1411-1-f4bug@amsat.org> References: <20180628153535.1411-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::243 Subject: [Qemu-devel] [PATCH 3/4] tests/vm: Only use -cpu 'host' if KVM is available 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?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 If KVM is not available, then use the 'max' cpu. This fixes: ERROR:root:Log: ERROR:root:qemu-system-x86_64: CPU model 'host' requires KVM Failed to prepare guest environment error: [Errno 104] Connection reset by peer source/qemu/tests/vm/Makefile.include:25: recipe for target 'tests/vm/ubu= ntu.i386.img' failed make: *** [tests/vm/ubuntu.i386.img] Error 2 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/vm/basevm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 3643117816..d80cc8ab85 100755 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -65,7 +65,6 @@ class BaseVM(object): self._stdout =3D self._devnull self._args =3D [ \ "-nodefaults", "-m", "2G", - "-cpu", "host", "-netdev", "user,id=3Dvnet,hostfwd=3D:127.0.0.1:0-:22", "-device", "virtio-net-pci,netdev=3Dvnet", "-vnc", "127.0.0.1:0,to=3D20", @@ -73,9 +72,11 @@ class BaseVM(object): if vcpus: self._args +=3D ["-smp", str(vcpus)] if os.access("/dev/kvm", os.R_OK | os.W_OK): + self._args +=3D ["-cpu", "host"] self._args +=3D ["-enable-kvm"] else: logging.info("KVM not available, not using -enable-kvm") + self._args +=3D ["-cpu", "max"] self._data_args =3D [] =20 def _download_with_cache(self, url, sha256sum=3DNone): --=20 2.18.0 From nobody Sat Feb 7 07:04:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530200298673840.8783334000565; Thu, 28 Jun 2018 08:38:18 -0700 (PDT) Received: from localhost ([::1]:37172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYYzu-0003WO-VD for importer@patchew.org; Thu, 28 Jun 2018 11:38:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYYxz-0002Os-Pu for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYYxy-0001cf-RC for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:15 -0400 Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]:41317) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYYxy-0001bq-MS for qemu-devel@nongnu.org; Thu, 28 Jun 2018 11:36:14 -0400 Received: by mail-qt0-x22b.google.com with SMTP id y20-v6so5087029qto.8 for ; Thu, 28 Jun 2018 08:36:14 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id f36-v6sm4746179qtb.36.2018.06.28.08.36.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 08:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EGRDgoE36mDQqE+90YcyhvSLriaFZBHTXjE5lI1e5Eg=; b=hO7u820+3rnUeZ1uvjCWXVHktqYzeSKPwCZU/Y9XLgRFH/BQ9apwtiOT+25gBTt9zD QjYKDvGzqZGIj2AFW4whMCu6FBeW0uV2TvvK9m1IMKnxCwhk5fMxYq2c2yJTcMyl5RYG taYgHylxrSSAjXgeVgJc8LUhtCDT2aG3zEWoXEoFSWWPVbwT2UdO3AlY0Lfr4yBy6les rBEApehPAx1DAB4lruxtzsxPkKcoduzyh4OoFNlrtBcEb+62GUVLxkW2+38w/8YI8pGI bAP+nISOqOpxo8yEujTCxRSJClsVkU8HmkFRQdzuDDmb3+nHWjHxk65Ef2LGVzKcrkbG VlYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=EGRDgoE36mDQqE+90YcyhvSLriaFZBHTXjE5lI1e5Eg=; b=ifbNqCecE3wjHaAMPecVz0Npm/jBCQu+iHjpRT6ROxtKBkh+8wthlKCr91aLq+gc6A vpqP9kVAQNdLlngmUrgH6gjf65Cz8P3IFUTU4KAMylo4sqYPF4JlC6jRcBgHSm98LkSk PL4nA45cXMjvIq0ptPs719f3HDliPSSCFpltOtJ7UnoCFVKf78ITmi66QUin1VuqeZ6m M6xD567f4EhFvvFv81idN+kLjzHGbgkCEysteP69mOiLOoJty++3CnatqZMQNZXFO0TM tCTYieXvQhMDw2and++LKNL2+qx6fi8CCJjJNorxyA8uMQkTRaWQ1UdVhYFAxa2o/czN CDjQ== X-Gm-Message-State: APt69E24LwbPjW8XrUheIZH6CpDFOj/giFhPSg6WsETJfXMIwZ891+2A Sz0tpq338gcmtjboUmL94dQ= X-Google-Smtp-Source: AAOMgpfCFdsJQN1dE2QFbBPv5krvcV1qafB3RWTn01kxN2/Km13nhGZdyQT4bgXLs0+g+ZQ0RsNKoA== X-Received: by 2002:ac8:4703:: with SMTP id f3-v6mr9949204qtp.176.1530200174202; Thu, 28 Jun 2018 08:36:14 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng Date: Thu, 28 Jun 2018 12:35:35 -0300 Message-Id: <20180628153535.1411-5-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180628153535.1411-1-f4bug@amsat.org> References: <20180628153535.1411-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22b Subject: [Qemu-devel] [PATCH 4/4] tests/vm: Add flex and bison to the vm image 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?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Similar to 79f24568e5e70, this fixes the following warnings: CHK version_gen.h LEX convert-dtsv0-lexer.lex.c make[1]: flex: Command not found BISON dtc-parser.tab.c make[1]: bison: Command not found LEX dtc-lexer.lex.c make[1]: flex: Command not found Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/vm/ubuntu.i386 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386 index be16ceed50..88b661b6d8 100755 --- a/tests/vm/ubuntu.i386 +++ b/tests/vm/ubuntu.i386 @@ -81,7 +81,7 @@ class UbuntuX86VM(basevm.BaseVM): # The previous update sometimes doesn't survive a reboot, so do it= again self.ssh_root_check("apt-get update") self.ssh_root_check("apt-get build-dep -y qemu") - self.ssh_root_check("apt-get install -y libfdt-dev") + self.ssh_root_check("apt-get install -y libfdt-dev flex bison") self.ssh_root("poweroff") self.wait() if os.path.exists(img): --=20 2.18.0