* [PATCH v2] tests/tracetool: Honor the Python interpreter that "configure" detected
@ 2026-01-15 15:53 Thomas Huth
2026-01-15 15:56 ` Daniel P. Berrangé
2026-01-19 19:04 ` Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Huth @ 2026-01-15 15:53 UTC (permalink / raw)
To: Stefan Hajnoczi, qemu-devel; +Cc: Mads Ynddal, Paolo Bonzini
From: Thomas Huth <thuth@redhat.com>
The tracetool tests currently fail if the host installation does not
have a "python3" binary (and you compiled QEMU by selecting a different
one during the "configure" step). This happens because tracetool-test.py
executes scripts/tracetool.py directly, so that this script is run via
its shebang line. To fix the issue, use the same Python interpreter to
run scripts/tracetool.py as we are using to run the tracetool-test.py
script.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
v2: Use sys.executable instead of passing the Python interpreter around
via a PYTHON environment variable.
tests/tracetool/tracetool-test.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/tracetool/tracetool-test.py b/tests/tracetool/tracetool-test.py
index 30006a99190..59e9ab3d6ef 100755
--- a/tests/tracetool/tracetool-test.py
+++ b/tests/tracetool/tracetool-test.py
@@ -36,7 +36,8 @@ def test_tracetool_one(tracetool, backend, fmt, src_dir, build_dir):
actual_file = Path(build_dir, rel_filename)
expect_file = Path(src_dir, rel_filename)
- args = [tracetool, f"--format={fmt}", f"--backends={backend}", "--group=testsuite"]
+ args = [sys.executable, tracetool,
+ f"--format={fmt}", f"--backends={backend}", "--group=testsuite"]
if fmt.find("stap") != -1:
args += ["--binary=qemu", "--probe-prefix=qemu"]
--
2.52.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] tests/tracetool: Honor the Python interpreter that "configure" detected
2026-01-15 15:53 [PATCH v2] tests/tracetool: Honor the Python interpreter that "configure" detected Thomas Huth
@ 2026-01-15 15:56 ` Daniel P. Berrangé
2026-01-19 19:04 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2026-01-15 15:56 UTC (permalink / raw)
To: Thomas Huth; +Cc: Stefan Hajnoczi, qemu-devel, Mads Ynddal, Paolo Bonzini
On Thu, Jan 15, 2026 at 04:53:18PM +0100, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
>
> The tracetool tests currently fail if the host installation does not
> have a "python3" binary (and you compiled QEMU by selecting a different
> one during the "configure" step). This happens because tracetool-test.py
> executes scripts/tracetool.py directly, so that this script is run via
> its shebang line. To fix the issue, use the same Python interpreter to
> run scripts/tracetool.py as we are using to run the tracetool-test.py
> script.
>
> Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> v2: Use sys.executable instead of passing the Python interpreter around
> via a PYTHON environment variable.
>
> tests/tracetool/tracetool-test.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] tests/tracetool: Honor the Python interpreter that "configure" detected
2026-01-15 15:53 [PATCH v2] tests/tracetool: Honor the Python interpreter that "configure" detected Thomas Huth
2026-01-15 15:56 ` Daniel P. Berrangé
@ 2026-01-19 19:04 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2026-01-19 19:04 UTC (permalink / raw)
To: Thomas Huth; +Cc: qemu-devel, Mads Ynddal, Paolo Bonzini
[-- Attachment #1: Type: text/plain, Size: 993 bytes --]
On Thu, Jan 15, 2026 at 04:53:18PM +0100, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
>
> The tracetool tests currently fail if the host installation does not
> have a "python3" binary (and you compiled QEMU by selecting a different
> one during the "configure" step). This happens because tracetool-test.py
> executes scripts/tracetool.py directly, so that this script is run via
> its shebang line. To fix the issue, use the same Python interpreter to
> run scripts/tracetool.py as we are using to run the tracetool-test.py
> script.
>
> Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> v2: Use sys.executable instead of passing the Python interpreter around
> via a PYTHON environment variable.
>
> tests/tracetool/tracetool-test.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks, applied to my tracing tree:
https://gitlab.com/stefanha/qemu/commits/tracing
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-19 19:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15 15:53 [PATCH v2] tests/tracetool: Honor the Python interpreter that "configure" detected Thomas Huth
2026-01-15 15:56 ` Daniel P. Berrangé
2026-01-19 19:04 ` Stefan Hajnoczi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.