[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/7] docs/devel/testing/functional: Clarify that we have to use th
From: |
Thomas Huth |
Subject: |
[PULL 1/7] docs/devel/testing/functional: Clarify that we have to use the build folder |
Date: |
Wed, 27 Nov 2024 11:34:19 +0100 |
Make it clear that the commands have to be run from the folder with the
build, and use the python3 from our pyvenv to make sure that the
pycotap module is available.
Message-ID: <20241112115302.470527-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
docs/devel/testing/functional.rst | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/docs/devel/testing/functional.rst
b/docs/devel/testing/functional.rst
index b8ad7b0bf7..ae238ed3fc 100644
--- a/docs/devel/testing/functional.rst
+++ b/docs/devel/testing/functional.rst
@@ -59,11 +59,12 @@ To run a single test file without the meson test runner,
you can also
execute the file directly by specifying two environment variables first,
the PYTHONPATH that has to include the python folder and the tests/functional
folder of the source tree, and QEMU_TEST_QEMU_BINARY that has to point
-to the QEMU binary that should be used for the test, for example::
+to the QEMU binary that should be used for the test. The current working
+directory should be your build folder. For example::
$ export PYTHONPATH=../python:../tests/functional
$ export QEMU_TEST_QEMU_BINARY=$PWD/qemu-system-x86_64
- $ python3 ../tests/functional/test_file.py
+ $ pyvenv/bin/python3 ../tests/functional/test_file.py
The test framework will automatically purge any scratch files created during
the tests. If needing to debug a failed test, it is possible to keep these
--
2.47.0
- [PULL 0/7] Misc fixes for QEMU 9.2-rc3, Thomas Huth, 2024/11/27
- [PULL 1/7] docs/devel/testing/functional: Clarify that we have to use the build folder,
Thomas Huth <=
- [PULL 2/7] docs: Document that hvf on Arm is supported, Thomas Huth, 2024/11/27
- [PULL 5/7] .gitlab-ci.d/cirrus: Remove the wrong CPU and RAM settings from the macOS job, Thomas Huth, 2024/11/27
- [PULL 7/7] hw/pci: Remove unused pci_irq_pulse() method, Thomas Huth, 2024/11/27
- [PULL 6/7] tests/functional: Remove sleep workarounds from sh4 test, Thomas Huth, 2024/11/27
- [PULL 3/7] tests/functional: Fix the running test case causes loongarch64 to hang, Thomas Huth, 2024/11/27
- [PULL 4/7] meson.build: Refuse XCode versions < v15.0, Thomas Huth, 2024/11/27
- Re: [PULL 0/7] Misc fixes for QEMU 9.2-rc3, Peter Maydell, 2024/11/28