summaryrefslogtreecommitdiffstats
path: root/tests/migration
diff options
context:
space:
mode:
authorCleber Rosa2019-02-06 17:29:01 +0100
committerCleber Rosa2019-02-22 20:07:01 +0100
commit8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a (patch)
treece9b96833ac68e67cd391393e34f0fcae530f8b1 /tests/migration
parentAcceptance tests: drop usage of ":avocado: enable" (diff)
downloadqemu-8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a.tar.gz
qemu-8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a.tar.xz
qemu-8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a.zip
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: Cleber Rosa <crosa@redhat.com> Reviewed-by: Caio Carrara <ccarrara@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20190206162901.19082-2-crosa@redhat.com> Signed-off-by: Cleber Rosa <crosa@redhat.com>
Diffstat (limited to 'tests/migration')
-rw-r--r--tests/migration/guestperf/engine.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/migration/guestperf/engine.py b/tests/migration/guestperf/engine.py
index 398e3f2706..0e304660b8 100644
--- a/tests/migration/guestperf/engine.py
+++ b/tests/migration/guestperf/engine.py
@@ -24,13 +24,14 @@ import re
import sys
import time
-sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'scripts'))
-import qemu
-import qmp.qmp
from guestperf.progress import Progress, ProgressStats
from guestperf.report import Report
from guestperf.timings import TimingRecord, Timings
+sys.path.append(os.path.join(os.path.dirname(__file__),
+ '..', '..', '..', 'python'))
+import qemu
+
class Engine(object):