From nobody Sat May 18 10:30:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1687306969; cv=none; d=zohomail.com; s=zohoarc; b=Dv0b42IeZfJg0p0UDwwmb146F+g96ZelfOV92RXysuDSlAd6mwYFJlXBdE4koC3dln8YHhGJCM22/f4ND4fRAm41KXNrpbleCrvmUvg2xZA3TbvLPW2KXLmdsr3yyeycEVYZQPjcMFYBIlBZgwz0++5OAlx0Ep2zDN/3bPlLKhY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687306969; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IbqHUNUUzyICKNg1KPxJjBeG4KgfXfoJFkJJCGALlEY=; b=HY70gzolcax7ncKqsYhkdnjkEbbYOCrWJrQHXZ3KEMEa9ZGHr+5mAQUVgd/XbIavZ068lP0zLiFT5tnPKD+G5Ro/FjNHC23z+bqQFNZi2YSS+UlEgUv2dEGAPBXNLHNHJCX7k7dcMEJfXVnrB2U8XD2HvD0rArrVvUHrII6froY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1687306969245789.5552676771263; Tue, 20 Jun 2023 17:22:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBlbX-00041e-P1; Tue, 20 Jun 2023 20:21:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbW-00040E-DF for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbQ-00006p-S8 for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:45 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-88-ZTshDb7HOiuNIGhGbmf0XQ-1; Tue, 20 Jun 2023 20:21:35 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 851048D6E26; Wed, 21 Jun 2023 00:21:35 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.32.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E7F8112132C; Wed, 21 Jun 2023 00:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687306898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IbqHUNUUzyICKNg1KPxJjBeG4KgfXfoJFkJJCGALlEY=; b=ZmTQiTt8acOVh0uDev7e8vrV9DozVoAP4sm0eog7V4HLF4sqEKaPiYxgNJgt/8JUOSKFEy yDYp6F+qRrvJdfD+uqSSrzG9giZh4Ow3MR+8PkGj0ec0BcUcwPhqmrgB/lfN74a8GkpjD3 30AgjbIbHJhDOT7pZimStsZR2PzDm3s= X-MC-Unique: ZTshDb7HOiuNIGhGbmf0XQ-1 From: John Snow To: qemu-devel@nongnu.org Cc: Thomas Huth , qemu-block@nongnu.org, Beraldo Leal , Hanna Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Kevin Wolf , Cleber Rosa , Paolo Bonzini Subject: [PATCH RFC 1/6] experiment: add mkvenv install Date: Tue, 20 Jun 2023 20:21:16 -0400 Message-Id: <20230621002121.1609612-2-jsnow@redhat.com> In-Reply-To: <20230621002121.1609612-1-jsnow@redhat.com> References: <20230621002121.1609612-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1687306970864100001 Content-Type: text/plain; charset="utf-8" This is just so I can do "mkvenv install './python'" or "mkvenv install file:python" to install the in-tree packages to pyvenv. It probably isn't quite appropriate to bypass do_ensure in its entirety like this because we miss out on a lot of error handling, but as a quick proof of concept it works just fine. Signed-off-by: John Snow --- python/scripts/mkvenv.py | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/python/scripts/mkvenv.py b/python/scripts/mkvenv.py index a47f1eaf5d..ea8df34111 100644 --- a/python/scripts/mkvenv.py +++ b/python/scripts/mkvenv.py @@ -940,6 +940,35 @@ def _add_ensure_subcommand(subparsers: Any) -> None: ) =20 =20 +def _add_install_subcommand(subparsers: Any) -> None: + subparser =3D subparsers.add_parser( + "install", help=3D"Install the specified package." + ) + subparser.add_argument( + "--online", + action=3D"store_true", + help=3D"Install packages from PyPI, if necessary.", + ) + subparser.add_argument( + "--dir", + type=3Dstr, + action=3D"store", + help=3D"Path to vendored packages where we may install from.", + ) + subparser.add_argument( + '--editable', + action=3D"store_true", + help=3D"Should package(s) be installed in editable mode?" + ) + subparser.add_argument( + "dep_specs", + type=3Dstr, + action=3D"store", + help=3D"PEP 508 Dependency specification, e.g. 'meson>=3D0.61.5'", + nargs=3D"+", + ) + + def main() -> int: """CLI interface to make_qemu_venv. See module docstring.""" if os.environ.get("DEBUG") or os.environ.get("GITLAB_CI"): @@ -964,6 +993,7 @@ def main() -> int: _add_create_subcommand(subparsers) _add_post_init_subcommand(subparsers) _add_ensure_subcommand(subparsers) + _add_install_subcommand(subparsers) =20 args =3D parser.parse_args() try: @@ -982,6 +1012,16 @@ def main() -> int: wheels_dir=3Dargs.dir, prog=3Dargs.diagnose, ) + if args.command =3D=3D "install": + print(f"mkvenv: installing {', '.join(args.dep_specs)}", file= =3Dsys.stderr) + pip_args =3D list(args.dep_specs) + if args.editable: + pip_args.insert(0, "--editable") + pip_install( + args=3Dpip_args, + online=3Dargs.online, + wheels_dir=3Dargs.dir + ) logger.debug("mkvenv.py %s: exiting", args.command) except Ouch as exc: print("\n*** Ouch! ***\n", file=3Dsys.stderr) --=20 2.40.1 From nobody Sat May 18 10:30:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1687307016; cv=none; d=zohomail.com; s=zohoarc; b=fi6+zJw5un/PucgAy8bS678UtCtTyks5u9F5Ik957zKzmqBgvURYoUtGfymYjYZ+DAciSKgF/MNqeLu7YXnMnUkrg60q2aF0stVLHKHPjq5hTfY0VlwflRAZjiDLEPY4NKLeWSVGcyIxfyTkEmgfACOc8J2EkNMee9qBWh17GdE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687307016; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7tmXMJY+e4M0cUKQ5yliUcPrNFZ1qAAb8NZJYE/gZ7o=; b=F828me7P8NPZBOKiWyGgTBVuPq0D2O3ahMs/gAnEQmGPG5Rd7TSY1uoJgbLyZen4D1RRcukSEfj08ZRcdIlaFAb1HbAb/PaA0y0Wc5KZDak6PSw6Z2bJcfO7EAVR//fKpnG8zPtfBSlKLYdy4MQmBE4sn/he94cePuAzheX8a54= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1687307016750627.0364850115981; Tue, 20 Jun 2023 17:23:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBlbV-0003zI-Tx; Tue, 20 Jun 2023 20:21:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbU-0003yT-6l for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbQ-000093-N3 for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:43 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-134-UaBkaYbiNzafKZ9VAPAM1w-1; Tue, 20 Jun 2023 20:21:36 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EA88A8028B2; Wed, 21 Jun 2023 00:21:35 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.32.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 93948112132C; Wed, 21 Jun 2023 00:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687306900; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7tmXMJY+e4M0cUKQ5yliUcPrNFZ1qAAb8NZJYE/gZ7o=; b=AKQECWenCV9fKTUuH/MgIS5sC9D7mpVj8K/c8cRUb+KyDtW5XOS3cUzt8JyDU3fB1e6Mq/ eLkBJTgqRwNxAJpGVWog0q/F6wNn463kmXoavOHXMYf78JJuc6L7xlObcum4I/YHT4kUT6 Kw793KtsCp/Iws0haZIki5AsxN7o+8w= X-MC-Unique: UaBkaYbiNzafKZ9VAPAM1w-1 From: John Snow To: qemu-devel@nongnu.org Cc: Thomas Huth , qemu-block@nongnu.org, Beraldo Leal , Hanna Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Kevin Wolf , Cleber Rosa , Paolo Bonzini Subject: [PATCH RFC 2/6] build, tests: Add qemu in-tree packages to pyvenv at configure time. Date: Tue, 20 Jun 2023 20:21:17 -0400 Message-Id: <20230621002121.1609612-3-jsnow@redhat.com> In-Reply-To: <20230621002121.1609612-1-jsnow@redhat.com> References: <20230621002121.1609612-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1687307017885100009 Content-Type: text/plain; charset="utf-8" though, ouch: on my machine this takes 3-4 entire seconds to do. I wish it wasn't so slow, but we can't rely on these packages not having any dependencies any more. We could theoretically use a .pth hack when creating the venv to automatically include this directory as an "installed packages" location, but when we go to drop qemu.qmp in the future, that will break - I think we need to *install* this package. Signed-off-by: John Snow --- configure | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/configure b/configure index 01a53576a7..d2e0abc068 100755 --- a/configure +++ b/configure @@ -250,6 +250,7 @@ git_submodules_action=3D"update" git=3D"git" debug_tcg=3D"no" docs=3D"auto" +tests=3D"enabled" EXESUF=3D"" prefix=3D"/usr/local" qemu_suffix=3D"qemu" @@ -639,6 +640,10 @@ for opt do ;; --disable-docs) docs=3Ddisabled ;; + --enable-tests) tests=3Denabled + ;; + --disable-tests) tests=3Ddisabled + ;; --cpu=3D*) ;; --target-list=3D*) target_list=3D"$optarg" @@ -985,6 +990,32 @@ if test "$docs" !=3D "disabled" ; then fi fi =20 +# Optionally pre-load the testing pre-requisites. This is for iotests, +# vmtests, and anything else that uses Python qemu.* packages. Note that +# our in-tree qemu packages are currently pure python with zero external +# dependencies. For this reason, it excludes the Avocado dependencies +# which are installed on-demand at time of use instead. + +mkvenv_flags=3D"" +if test "$pypi" =3D "enabled" ; then + mkvenv_flags=3D"--online" +fi + +if test "$tests" =3D "enabled" ; then + if ! $mkvenv install \ + $mkvenv_flags \ + --editable \ + --dir "${source_path}/python/wheels" \ + "${source_path}/python/"; + then + echo "There was a problem installing the in-tree python packages f= or testing." + exit 1 + fi + touch pyvenv/tests.group +fi + +echo "mkvenv: done for now, ciao!" + # Probe for ninja =20 if test -z "$ninja"; then --=20 2.40.1 From nobody Sat May 18 10:30:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1687307015; cv=none; d=zohomail.com; s=zohoarc; b=nAUNFWA7V7G+hVsQpnx31uMQHAagGWRFfo25KfjY1EIP0U1yCqfzV0juGORVfHOFY34OPxM2rqffkbz8y179XE9nWEPeX1L92C9mDFB/n0ZMQ7PywNtejMN6u6v+CLWt1s/UZfBakGivGlepDUzbNzzvP+fTVfBGtJbU1g83/6k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687307015; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=iYQaPAZHDGfmc/iGdIP4cW70XOXR2Y92QJpitsAFuNc=; b=fewnzf6lhcCIqkkwoEVaml7/qM2V3EP7OIEzaecGkEdL5/fmvwjXVdYFZ9N7ytIL/ZdjuRFNsSGIJrxZ2XkN+Fv9Li152NZ8ct6WQHVrwVcRi9gYL4xlLfHyzGRbVU7U2G/USt36L25l0sS5UXAVI0YXAG/Zc9BcxBQwtxceYZo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1687307015645695.9736790556938; Tue, 20 Jun 2023 17:23:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBlba-00042k-4c; Tue, 20 Jun 2023 20:21:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbV-0003z9-0x for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:45 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbQ-00006w-Pj for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:44 -0400 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-134-l8Gli7PSOjuoqNN1WzWOZQ-1; Tue, 20 Jun 2023 20:21:36 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5AC6C29ABA0B; Wed, 21 Jun 2023 00:21:36 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.32.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02283112132C; Wed, 21 Jun 2023 00:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687306898; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iYQaPAZHDGfmc/iGdIP4cW70XOXR2Y92QJpitsAFuNc=; b=AzwmTgLfH3gKNVnwHsW5Rqk+dWswoYYk3IfPz2fBF30gMs6aQDl6LH2d7fTAgpqkkA0J2k rM3xjyCCaDiAInhuMwnBhGI5B/vKYQ8DPF7HFx/1Kyjm9wFoMd2Zu1/Zq5JCat9wtDzWdn HT/SJy4l8UUlr1AlULyvt6JER41NMtU= X-MC-Unique: l8Gli7PSOjuoqNN1WzWOZQ-1 From: John Snow To: qemu-devel@nongnu.org Cc: Thomas Huth , qemu-block@nongnu.org, Beraldo Leal , Hanna Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Kevin Wolf , Cleber Rosa , Paolo Bonzini Subject: [PATCH RFC 3/6] iotests: get rid of '..' in path environment output Date: Tue, 20 Jun 2023 20:21:18 -0400 Message-Id: <20230621002121.1609612-4-jsnow@redhat.com> In-Reply-To: <20230621002121.1609612-1-jsnow@redhat.com> References: <20230621002121.1609612-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1687307016972100002 Content-Type: text/plain; charset="utf-8" Resolve the build_root before we append more items onto it so that the environment output is more concise with less parent directory confetti in it. Signed-off-by: John Snow --- tests/qemu-iotests/testenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py index 9a37ad9152..e67ebd254b 100644 --- a/tests/qemu-iotests/testenv.py +++ b/tests/qemu-iotests/testenv.py @@ -216,7 +216,7 @@ def __init__(self, source_dir: str, build_dir: str, self.source_iotests =3D source_dir self.build_iotests =3D build_dir =20 - self.build_root =3D os.path.join(self.build_iotests, '..', '..') + self.build_root =3D Path(self.build_iotests).parent.parent =20 self.init_directories() =20 --=20 2.40.1 From nobody Sat May 18 10:30:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1687306947; cv=none; d=zohomail.com; s=zohoarc; b=QUB2zGFFmYa4VQ1XJIGy47Npw4xQuP8OhtPfeGKIKD6GbUmLxaQ2xoc3po5W4OiYrgixoe99R0EBsz7pSFAODDt2+OKAVeG0QAHf1Pbs8M12EcC90XtFbsFK+Xg1dU6sOWgL1QJZVZM8IU0tiU3zUmppA2FoVMXBXR+W5AiVC/Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687306947; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=LkU7CMyTAXo6v8bUrSdszIMVMWjQzMx6I+wCcy8oGI4=; b=PPeSkTSTrSG0F1ieTg6MtWzOvvMFX6E85lDGwCLsRZHKY/oeoCRQX6rvBshhAHuSi2pB55NltmLzNz/g5RBq7eKW+O2e7552KDDwIcBswngp2f3LPRuYE2XUIbAPBzE9iMAy64bUv4I1y/aODJ1vRoi/WlCsDK1R+bsWVWhgIO0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 168730694735589.53683202024342; Tue, 20 Jun 2023 17:22:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBlbb-00042y-2k; Tue, 20 Jun 2023 20:21:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbW-00040I-Do for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbR-00009w-2v for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:46 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-464-bUcv_dKzOyaXjPhwH74t6Q-1; Tue, 20 Jun 2023 20:21:37 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C166F88CC49; Wed, 21 Jun 2023 00:21:36 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.32.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 69424112132C; Wed, 21 Jun 2023 00:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687306900; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LkU7CMyTAXo6v8bUrSdszIMVMWjQzMx6I+wCcy8oGI4=; b=ErcUBrjyIphKR2C5OjZXjbu2E689eJDo7Re3WLUOKvw01mW5Q7A2cXKOauetdbLwJjPBXg NLdxB0Rjg1jtCGR//bGC9ySwJSm5NJTgPr4HIs18fMzPE7/NKl2TUt4BN9w42TmQEUcrSd q6eTfuFtPL2q1Rl5XouTFF8/iE8vHBk= X-MC-Unique: bUcv_dKzOyaXjPhwH74t6Q-1 From: John Snow To: qemu-devel@nongnu.org Cc: Thomas Huth , qemu-block@nongnu.org, Beraldo Leal , Hanna Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Kevin Wolf , Cleber Rosa , Paolo Bonzini Subject: [PATCH RFC 4/6] iotests: use the correct python to run linters Date: Tue, 20 Jun 2023 20:21:19 -0400 Message-Id: <20230621002121.1609612-5-jsnow@redhat.com> In-Reply-To: <20230621002121.1609612-1-jsnow@redhat.com> References: <20230621002121.1609612-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1687306949202100001 Content-Type: text/plain; charset="utf-8" Whichever python is used to run iotest 297 should be the one used to actually run the linters. Signed-off-by: John Snow --- tests/qemu-iotests/linters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/linters.py b/tests/qemu-iotests/linters.py index 65c4c4e827..9fb3fd1449 100644 --- a/tests/qemu-iotests/linters.py +++ b/tests/qemu-iotests/linters.py @@ -68,7 +68,7 @@ def run_linter( :raise CalledProcessError: If the linter process exits with failure. """ subprocess.run( - ('python3', '-m', tool, *args), + (sys.executable, '-m', tool, *args), env=3Denv, check=3DTrue, stdout=3Dsubprocess.PIPE if suppress_output else None, --=20 2.40.1 From nobody Sat May 18 10:30:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1687306973; cv=none; d=zohomail.com; s=zohoarc; b=eqn9K/81bpt4Fsd7fqUzkbg8Hb1vlu/tM3fIxILe7XN50md23MHj6gBBfg5iHIpfylMGdeuUQuvBKDpLkbJsV7AVB6hQ7NGMfoehZPgLflo2Qpuu5xjAGh+W1RMbJ7olaRIh5F1ZWkeNzMgRdCnR6dVME5qbHAISThfRdfZx048= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687306973; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PlwB+WM1b7QfqPY4EB+HTeRP+apwkJM6BwxEO67ro5k=; b=WZXhVuOPj0Y3hdum/tdFc94fTx1weCF8eQTkitUKJAIPuq1Hf5ONllAowaJddKtFnv5gzhtpYQ4wm0VbM8idWa/FZGMayj3JR1vvEJbwQJe9yUjjfu6NCbZXTLlMm/5aMtLyxMNjjv3OLKLdSmJAW08vm194WQRxQBEAAwY8fNo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1687306973597684.5592712596806; Tue, 20 Jun 2023 17:22:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBlbY-000425-E7; Tue, 20 Jun 2023 20:21:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbW-00040Q-Et for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbS-0000AO-DE for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:46 -0400 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-595-vK6XCe1hNO6uY2GqojsTdw-1; Tue, 20 Jun 2023 20:21:37 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3250A381079C; Wed, 21 Jun 2023 00:21:37 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.32.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id D01AA112132C; Wed, 21 Jun 2023 00:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687306901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PlwB+WM1b7QfqPY4EB+HTeRP+apwkJM6BwxEO67ro5k=; b=FkioT9ll0CXwHSpOh5EgrG4VH4BBQRWw8GZSMWcrxbbEXSiYm25GFsugK++gHIqvO2h0vz ONvP/7HdWwvIdLwS1Wile8Fpn2xFOANwtZwFtTTaD+VNDQv9z61zoYNLpi6c85Ho5q/ONh DGdGhVQ0+U2UfjPMYvn9fs2h0ixx1a4= X-MC-Unique: vK6XCe1hNO6uY2GqojsTdw-1 From: John Snow To: qemu-devel@nongnu.org Cc: Thomas Huth , qemu-block@nongnu.org, Beraldo Leal , Hanna Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Kevin Wolf , Cleber Rosa , Paolo Bonzini Subject: [PATCH RFC 5/6] iotests: use pyvenv/bin/python3 to launch child test processes Date: Tue, 20 Jun 2023 20:21:20 -0400 Message-Id: <20230621002121.1609612-6-jsnow@redhat.com> In-Reply-To: <20230621002121.1609612-1-jsnow@redhat.com> References: <20230621002121.1609612-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1687306975597100003 Content-Type: text/plain; charset="utf-8" Now that there's a fancy venv set up for us by configure, we should take care to use it even when check is invoked directly. ./check will now use the pyvenv environment when launching python tests, which allows those tests to find and access the 'qemu.*' packages without PYTHONPATH modifications. RFC: This patch now means that ./check may launch test subprocesses using a different Python than the one used to launch it. If that isn't acceptable, we might need a launcher shim whose job it is to sit above "check" and just chooses the correct Python. ...Or maybe it's fine the way it is. Comments welcome, sorry for my indecision. Signed-off-by: John Snow --- tests/qemu-iotests/testenv.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py index e67ebd254b..1b095d70f2 100644 --- a/tests/qemu-iotests/testenv.py +++ b/tests/qemu-iotests/testenv.py @@ -138,7 +138,20 @@ def init_binaries(self) -> None: PYTHON (for bash tests) QEMU_PROG, QEMU_IMG_PROG, QEMU_IO_PROG, QEMU_NBD_PROG, QSD_PR= OG """ - self.python =3D sys.executable + # The python we want to use to launch tests. + self.python: str =3D str( + Path(self.build_root).joinpath('pyvenv', 'bin', 'python3') + ) + # RFC: Do I need to amend '.exe' for windows, or nah? + + if self.python !=3D sys.executable: + print( + "Note: " + f"check was launched with a Python ({sys.executable}) " + f"that doesn't match QEMU's configured Python ({self.pytho= n})." + " QEMU's Python will be used for individual test processes= .", + file=3Dsys.stderr + ) =20 def root(*names: str) -> str: return os.path.join(self.build_root, *names) --=20 2.40.1 From nobody Sat May 18 10:30:00 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1687307016; cv=none; d=zohomail.com; s=zohoarc; b=Q6jT+YcaNor+XCF1bsQLndcZoABSfdOpbbaJoXF3TXctNKTcJh2l+TQfv+S3jlk4vZlU3uXAVIo0ceFLwKa1ErLTfBgjgoSjnwXyQH+qhx7vXkuAipI2pHJB1dZ1D2xyHJMteylA7Z3edaJfhllciMWlkKECcYpKruBucnqL2pY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1687307016; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dLtrgsESiA1y9/tsmlAWVcd6ujxkZYiJAKc2n+jmnXg=; b=J2XuMJZg5hEACvs/pEUjwrtgM35B0k3IFypqGGHuBigeZc77qVmK/rEbyotopL3w28EITX85AnuPvLXEB0PT3ZZmhXaU8i+4vjJgfohU5HHKwCpYCVNO4hYgX0u1L0LNqSRIYPxcvRokFh9MU9CEwAbqs18b1bI7m6qeWPW0rEs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1687307016481935.6174261758562; Tue, 20 Jun 2023 17:23:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBlba-00042m-IK; Tue, 20 Jun 2023 20:21:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbW-00040L-Di for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBlbS-0000AM-BT for qemu-devel@nongnu.org; Tue, 20 Jun 2023 20:21:45 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-539-DkcmP4kqOS2NJt4bvxsd-w-1; Tue, 20 Jun 2023 20:21:38 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9B0AF185A78B; Wed, 21 Jun 2023 00:21:37 +0000 (UTC) Received: from scv.redhat.com (unknown [10.22.32.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4141E112132C; Wed, 21 Jun 2023 00:21:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687306901; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dLtrgsESiA1y9/tsmlAWVcd6ujxkZYiJAKc2n+jmnXg=; b=edJx8n0R55O6UZe/opndeMuqHtnmhrD3JO+hmIvAZBsGv8ujnDQbOm+A2Z/35smypWi//4 tqsr0hDn6wYXIGcifPTHIlR41k/QM1fSpdDGrldvWQLKhn2vxyOpJpXxTE5hjuZDKOTkZ/ kTiRKfY+ddXOoJ8Wv0XwJVAGvkCnlXk= X-MC-Unique: DkcmP4kqOS2NJt4bvxsd-w-1 From: John Snow To: qemu-devel@nongnu.org Cc: Thomas Huth , qemu-block@nongnu.org, Beraldo Leal , Hanna Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Kevin Wolf , Cleber Rosa , Paolo Bonzini Subject: [PATCH RFC 6/6] iotests: don't add qemu.git/python to PYTHONPATH Date: Tue, 20 Jun 2023 20:21:21 -0400 Message-Id: <20230621002121.1609612-7-jsnow@redhat.com> In-Reply-To: <20230621002121.1609612-1-jsnow@redhat.com> References: <20230621002121.1609612-1-jsnow@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1687307016972100001 Content-Type: text/plain; charset="utf-8" qemu.* should be provided by the configure-time venv, now. Signed-off-by: John Snow --- tests/qemu-iotests/testenv.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py index 1b095d70f2..6441145701 100644 --- a/tests/qemu-iotests/testenv.py +++ b/tests/qemu-iotests/testenv.py @@ -108,12 +108,8 @@ def init_directories(self) -> None: SAMPLE_IMG_DIR """ =20 - # Path where qemu goodies live in this source tree. - qemu_srctree_path =3D Path(__file__, '../../../python').resolve() - self.pythonpath =3D os.pathsep.join(filter(None, ( self.source_iotests, - str(qemu_srctree_path), os.getenv('PYTHONPATH'), ))) =20 --=20 2.40.1