Received: from eggs.gnu.org ([2001:4830:134:3::10]:41236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZt6T-00010u-HJ for qemu-devel@nongnu.org; Mon, 02 Jul 2018 03:18:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZt6Q-0007OT-CN for qemu-devel@nongnu.org; Mon, 02 Jul 2018 03:18:29 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:52862 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fZt6Q-0007OH-6y for qemu-devel@nongnu.org; Mon, 02 Jul 2018 03:18:26 -0400 Date: Mon, 2 Jul 2018 15:18:23 +0800 From: Fam Zheng Message-ID: <20180702071823.GJ26002@lemon.usersys.redhat.com> References: <20180628153535.1411-1-f4bug@amsat.org> <20180628153535.1411-3-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20180628153535.1411-3-f4bug@amsat.org> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/4] tests/vm: Add a dependency to qemu-img List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= Cc: Alex =?iso-8859-1?Q?Benn=E9e?= , qemu-devel@nongnu.org On Thu, 06/28 12:35, Philippe Mathieu-Daud=E9 wrote: > Before the first use, the VM image are resized with qemu-img. >=20 > Add a dependency to the qemu-img tool to fix: >=20 > $ 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 >=20 > Signed-off-by: Philippe Mathieu-Daud=E9 > --- > tests/vm/Makefile.include | 3 +++ > 1 file changed, 3 insertions(+) >=20 > 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) No, please don't do this. Let's keep on supporting vm tests from a clean = source tree. Similar to qemu_bin, this can be handled in basevm.py. Fam > + > 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 >=20