From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94209C83F17 for ; Wed, 9 Jul 2025 22:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tRjFnmCzYN+qn8kF+o9IzfpkXQ4+JquW4HupC73fftA=; b=WFJE54qlVErY7ERpx+2/N2HAIf cm0y0o2aEiEXL/k6nbDJ0Xmha+xqVjMfT9uBb9X3ZnbXQzCy0k93eHXOs6IT7yPwsOh+TwH6R0duP VadT+00gOTZaG1Y0ApP8OhEpHszkl0CZnbqLrlGptlCUD3/vD8iacb6+gM2zxK2p6rEESsGQIU+ku 0BrZDMoW63xE1mhyQOlIy/nWuHvOa8M8km00F9Xs/Jv6piQ6m1IMA3WUml9AC5q9xPi2tT3eRWfRJ smPL1eooKkisd3c0NXWORv0MlpO9xtNC5uQHgBTcWGMtBKFh32akAIlQmmW3YGdtVn5ZmtVZQ5RDx zJOa4irA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZdjS-0000000AAfm-3A15; Wed, 09 Jul 2025 22:57:42 +0000 Received: from mail-pj1-x1049.google.com ([2607:f8b0:4864:20::1049]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZcVQ-00000009vhZ-2JqW for linux-arm-kernel@lists.infradead.org; Wed, 09 Jul 2025 21:39:09 +0000 Received: by mail-pj1-x1049.google.com with SMTP id 98e67ed59e1d1-3138e64b3f1so414116a91.3 for ; Wed, 09 Jul 2025 14:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1752097147; x=1752701947; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=tRjFnmCzYN+qn8kF+o9IzfpkXQ4+JquW4HupC73fftA=; b=J7Qe2R+9zmMU9OTAePT8F51wCm8asXrtCKd+YX7EQ+tn+JF7hj4KiAmQ8oT81Ks/0R 2J1Z6wYtiD/AnMZ5ZZCT3UkZO2qSZWrOLbBgBTTy4LW11tx2FStUDVondryQX/BzvFbD bcvYvG/h/se2Y5Py+jMLTnVrWlSRTRHeK7uEnZTPhkKGpVX9tjGLlOYkDVMcUh1fCmv+ gk6T62thmxwPwYNFtwEVVh4ePmgsedSjaRUu9ewCY/LKuh9Bfbzq3IaZmO38Kn/2f0Kp IFoDoV2C8hRya0hqpn92kJkW6O8s8XdFfnhv12dUXmQUhzARYR3gHYYGkIUZZ4LxzUAV etmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752097147; x=1752701947; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tRjFnmCzYN+qn8kF+o9IzfpkXQ4+JquW4HupC73fftA=; b=NdRjwKPiQ9ePP4NGVfwcYB/NV9JDFXf2uyCTwHOLRZ8zs7yYxP5pugLMIYKoUm1QzH CBgKIvAYRh8xfV+cjFqwHRM8Zff1OjP6D9e6jLiWRFx5iSbnJRW2AGnDEG3QDgOKkxbc B4wM/YZYD6VpjKsCYMmhTyXXPiWCdJQjAG7oXVU6chpTd9NtD5cig0F7MYQ30NPTz5HO JR13uMp3rbuKtlKiMzY3BZ6LTPjU36mGRFQAubJrzoJBgSuAhPo9hK4paut+tPxHlxmb SWQz1OL9CpVWlK/5vPLSpcgXLRbwmidcYcn+Ra0HRoaUZyFmxvoe61jMuM8CDTlWXPxu R5SA== X-Forwarded-Encrypted: i=1; AJvYcCWWYpUY7tBPWs/hq86g7gWeLkqH0Z1EEvPBpOPW1j4al4aOI+mge/MngoYlVfka8BDJlJUoo11ap8F5AGdGP4Nq@lists.infradead.org X-Gm-Message-State: AOJu0Yzx0st4R3+gY0nCJ2l4yzeyt/TvcQy6HIDHFyCH7BRfEcMDF9S5 lv9QMVQyk6ki8msHdsikYN3eNvCHGKIav3ayU5eJ18HleNZ2fnH7aFTc8yMb76VVbUMPAboapwO KJutZbw== X-Google-Smtp-Source: AGHT+IGqLtd25jQcDPlbBnyHm57aZXVZqGANjf8aQ+PHIDAz5DerrzktIfl+GNc39oHL/0frC4tukw2+CLQ= X-Received: from pjbqn6.prod.google.com ([2002:a17:90b:3d46:b0:312:2b3:7143]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:5344:b0:313:62ee:45a with SMTP id 98e67ed59e1d1-31c3ef2308emr245837a91.13.1752097147476; Wed, 09 Jul 2025 14:39:07 -0700 (PDT) Date: Wed, 9 Jul 2025 14:39:05 -0700 In-Reply-To: <20250606235619.1841595-3-vipinsh@google.com> Mime-Version: 1.0 References: <20250606235619.1841595-1-vipinsh@google.com> <20250606235619.1841595-3-vipinsh@google.com> Message-ID: Subject: Re: [PATCH v2 02/15] KVM: selftests: Enable selftests runner to find executables in different path From: Sean Christopherson To: Vipin Sharma Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, pbonzini@redhat.com, anup@brainfault.org, borntraeger@linux.ibm.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com, maz@kernel.org, oliver.upton@linux.dev, dmatlack@google.com Content-Type: text/plain; charset="us-ascii" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250709_143908_593267_6F290F8C X-CRM114-Status: GOOD ( 14.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 06, 2025, Vipin Sharma wrote: > Add command line option, --executable/-e, to specify a directory where > test binaries are present. If this option is not provided then default > to the current directory. > > Example: > python3 runner --test-dirs test -e ~/build/selftests > > This option enables executing tests from out-of-tree builds. > > Signed-off-by: Vipin Sharma > --- > tools/testing/selftests/kvm/runner/__main__.py | 8 +++++++- > tools/testing/selftests/kvm/runner/selftest.py | 4 ++-- > tools/testing/selftests/kvm/runner/test_runner.py | 4 ++-- > 3 files changed, 11 insertions(+), 5 deletions(-) > > diff --git a/tools/testing/selftests/kvm/runner/__main__.py b/tools/testing/selftests/kvm/runner/__main__.py > index b2c85606c516..599300831504 100644 > --- a/tools/testing/selftests/kvm/runner/__main__.py > +++ b/tools/testing/selftests/kvm/runner/__main__.py > @@ -29,6 +29,12 @@ def cli(): > default=[], > help="Run tests in the given directory and all of its sub directories. Provide the space separated paths to add multiple directories.") > > + parser.add_argument("-e", > + "--executable", "executable" is kinda odd to me, as that suggests a single, specific executable. -p/--path seems more aligned with how this concept is typically described in Linux.