diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:19:54 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:19:54 +0200 |
commit | c158582c0fc7f4bd73980fe9adad446855f4d61b (patch) | |
tree | 31b701a2367cb983e76e76cd7c2ba176ad33e5ac /recipes-test/virt-test/files/virt-test-search-qemu-system-arch.patch | |
download | meta-vt-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'recipes-test/virt-test/files/virt-test-search-qemu-system-arch.patch')
-rw-r--r-- | recipes-test/virt-test/files/virt-test-search-qemu-system-arch.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-test/virt-test/files/virt-test-search-qemu-system-arch.patch b/recipes-test/virt-test/files/virt-test-search-qemu-system-arch.patch new file mode 100644 index 0000000..2199317 --- /dev/null +++ b/recipes-test/virt-test/files/virt-test-search-qemu-system-arch.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | diff --git a/virttest/utils_misc.py b/virttest/utils_misc.py | ||
2 | index c6a3104..61ffb23 100644 | ||
3 | --- a/virttest/utils_misc.py | ||
4 | +++ b/virttest/utils_misc.py | ||
5 | @@ -21,6 +21,7 @@ import tarfile | ||
6 | import shutil | ||
7 | import getpass | ||
8 | import ctypes | ||
9 | +import platform | ||
10 | from autotest.client import utils, os_dep | ||
11 | from autotest.client.shared import error, logging_config | ||
12 | from autotest.client.shared import git | ||
13 | @@ -1697,7 +1698,7 @@ def get_qemu_binary(params): | ||
14 | qemu_binary = find_command('qemu-kvm') | ||
15 | logging.debug('Found %s', qemu_binary) | ||
16 | except ValueError: | ||
17 | - qemu_binary = find_command('kvm') | ||
18 | + qemu_binary = find_command('qemu-system-%s' % platform.machine()) | ||
19 | logging.debug('Found %s', qemu_binary) | ||
20 | else: | ||
21 | library_path = os.path.join(_get_backend_dir(params), 'install_root', 'lib') | ||