[PATCH v2 02/15] KVM: selftests: Enable selftests runner to find executables in different path
Sean Christopherson
seanjc at google.com
Wed Jul 9 14:39:05 PDT 2025
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 <vipinsh at google.com>
> ---
> 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.
More information about the kvm-riscv
mailing list