diff options
author | Cleber Rosa | 2019-02-06 17:29:01 +0100 |
---|---|---|
committer | Cleber Rosa | 2019-02-22 20:07:01 +0100 |
commit | 8f8fd9edba4bd6768da2c8e2bea49ad5c16ced1a (patch) | |
tree | ce9b96833ac68e67cd391393e34f0fcae530f8b1 /scripts/device-crash-test | |
parent | Acceptance tests: drop usage of ":avocado: enable" (diff) | |
download | qemu-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 'scripts/device-crash-test')
-rwxr-xr-x | scripts/device-crash-test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/device-crash-test b/scripts/device-crash-test index 2a13fa4f84..a6748910ad 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -25,6 +25,7 @@ check for crashes and unexpected errors. """ from __future__ import print_function +import os import sys import glob import logging @@ -34,6 +35,7 @@ import random import argparse from itertools import chain +sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'python')) from qemu import QEMUMachine logger = logging.getLogger('device-crash-test') |