[Spice-devel] [spice 4/8] tests: migrate: fix relative qmp.py path
Frediano Ziglio
fziglio at redhat.com
Wed Sep 25 09:30:49 UTC 2019
>
> From: Victor Toso <me at victortoso.com>
>
> Moved in qemu, see:
>
> | commit 8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a
> | Author: Cleber Rosa <crosa at redhat.com>
> | Date: Wed Feb 6 11:29:01 2019 -0500
> |
> | Introduce a Python module structure
> |
> | This is a simple move of Python code that wraps common QEMU
> | functionality, and are used by a number of different tests and
> | scripts.
> |
> | By treating that code as a real Python module, we can more easily:
> | * reuse code
> | * have a proper place for the module's own unittests
> | * apply a more consistent style
> | * generate documentation
>
> Signed-off-by: Victor Toso <victortoso at redhat.com>
> ---
> tests/migrate.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/migrate.py b/tests/migrate.py
> index f893b2ac..5cbc8218 100755
> --- a/tests/migrate.py
> +++ b/tests/migrate.py
> @@ -32,7 +32,7 @@ try:
> import qmp
> except:
> import sys
> - sys.path.append("../../qemu/QMP")
> + sys.path.append("../../qemu/python/qemu/")
> try:
> import qmp
> except:
On the comment there's
Dependencies:
either qmp in python path or running with spice and qemu side by side:
qemu/QMP/qmp.py
spice/tests/migrate.py
It seems a good idea to update it too.
Frediano
More information about the Spice-devel
mailing list