Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26C93C433EF for ; Thu, 23 Sep 2021 10:36:42 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CCA4A60EE7 for ; Thu, 23 Sep 2021 10:36:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CCA4A60EE7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:57758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTM5o-0005IG-Qb for qemu-devel@archiver.kernel.org; Thu, 23 Sep 2021 06:36:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTM2t-0001X4-Mx for qemu-devel@nongnu.org; Thu, 23 Sep 2021 06:33:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:31425) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTM2r-0007nG-N4 for qemu-devel@nongnu.org; Thu, 23 Sep 2021 06:33:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632393215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nm+bmt/ZDD+Q6WttiovZxD1cFXLe2jECBuPwADSaVic=; b=ajlS2mI2ovFgfCc3rwwG2RWOD8qnrZYvm6rHsGOiP1LoLuXkINxpRz8n2U2yvka9kjJtzC mQ20mZkFfmD0KTi2T3EqlktuawiDeUuvWpRt5mqNZywEb0nVfdI0i8UlVOpEG6s67WlllT XTJxNfR9iLCUMpHL3Y6TQj8YU4JwJNk= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-139-fEAw-vFlOvCiyZ--ku39dw-1; Thu, 23 Sep 2021 06:33:34 -0400 X-MC-Unique: fEAw-vFlOvCiyZ--ku39dw-1 Received: by mail-wr1-f69.google.com with SMTP id v1-20020adfc401000000b0015e11f71e65so4785043wrf.2 for ; Thu, 23 Sep 2021 03:33:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=nm+bmt/ZDD+Q6WttiovZxD1cFXLe2jECBuPwADSaVic=; b=ap7xOnJDS43MtZZ4AvC7RDD30G/A6XyC/NZJnHyOJKsdv2hmbEz+d7hqvzs+wiI8RF QcSEJlBqumWsx+ATddHh+Y8hCrBv7a9zjTkXtWSoyquDTnjStqm6YKzQwTN0RBWpWjQ+ Sp8F33KnQtFAp5/2Ee02+a4JT39/N+vBlxyUpF8DRNdntRr1Khaj/qC4m6J6+pSx1Wvh 6Oyk5rUkj7G3ujrrMWoDjejtxMbiFGRGDoC3I3W4P4L7yZED4FO5i7LnNu7Zynlu+DTq UnL3nNVP9btv8W4pe5npiupYBOQMqFrTMWgIvg1E+NnXMLSo3PxFj4vMAdnUVh7yp6t/ VrVA== X-Gm-Message-State: AOAM5322PS9swotNEgZK7gSTHtLWSuW9rQjGdE7GOfD/ZCgYBoJtv8iK suc+KmiHOcdLVEJryO5GPk7jkwxS6UcsUuCDdCbkPKyEqMSRoyQJTFI2rzSr3moMykATR1NmTst QJ2HWEuEiTBxE/Es= X-Received: by 2002:a5d:4b0b:: with SMTP id v11mr4252681wrq.359.1632393213794; Thu, 23 Sep 2021 03:33:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRiA8sJy5uOKyzLWK+o77jpQbqqTgGaSwQ11RpDSDBWNkz1knGcHlmVTED9GD4UNrBFD//cw== X-Received: by 2002:a5d:4b0b:: with SMTP id v11mr4252668wrq.359.1632393213669; Thu, 23 Sep 2021 03:33:33 -0700 (PDT) Received: from [192.168.1.36] (118.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.118]) by smtp.gmail.com with ESMTPSA id j14sm4840083wrp.21.2021.09.23.03.33.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Sep 2021 03:33:33 -0700 (PDT) Message-ID: <0f7c7991-e0af-1447-91be-260134c746d5@redhat.com> Date: Thu, 23 Sep 2021 12:33:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH 1/6] iotests: add 'qemu' package location to PYTHONPATH in testenv To: John Snow , qemu-devel@nongnu.org References: <20210923001625.3996451-1-jsnow@redhat.com> <20210923001625.3996451-2-jsnow@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: <20210923001625.3996451-2-jsnow@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.472, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Hanna Reitz , Vladimir Sementsov-Ogievskiy , qemu-block@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 9/23/21 02:16, John Snow wrote: > We can drop the sys.path hacking in various places by doing > this. Additionally, by doing it in one place right up top, we can print > interesting warnings in case the environment does not look correct. > > If we ever decide to change how the environment is crafted, all of the > "help me find my python packages" goop is all in one place, right in one > function. > > Signed-off-by: John Snow > --- > tests/qemu-iotests/235 | 2 -- > tests/qemu-iotests/297 | 6 ------ > tests/qemu-iotests/300 | 7 +++---- > tests/qemu-iotests/iotests.py | 2 -- > tests/qemu-iotests/testenv.py | 14 +++++++++----- > tests/qemu-iotests/tests/mirror-top-perms | 7 +++---- > 6 files changed, 15 insertions(+), 23 deletions(-) Reviewed-by: Philippe Mathieu-Daudé