qemu/tests/vm
Philippe Mathieu-Daudé 44c8a6ab45 tests/vm: Update get_default_jobs() to work on non-x86_64 non-KVM hosts
On non-x86_64 host, if KVM is not available we get:

  Traceback (most recent call last):
    File "tests/vm/basevm.py", line 634, in main
      vm = vmcls(args, config=config)
    File "tests/vm/basevm.py", line 104, in __init__
      mem = max(4, args.jobs)
  TypeError: '>' not supported between instances of 'NoneType' and 'int'

Fix by always returning a -- not ideal but safe -- '1' value.

Fixes: b09539444a ("tests/vm: allow us to take advantage of MTTCG")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221209164743.70836-1-philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2023-01-09 13:50:13 +01:00
..
aarch64vm.py python: create qemu packages 2021-06-01 16:21:21 -04:00
basevm.py tests/vm: Update get_default_jobs() to work on non-x86_64 non-KVM hosts 2023-01-09 13:50:13 +01:00
centos tests/vm: Remove docker cross-compile test from CentOS VM 2022-07-18 20:24:36 +02:00
centos-8-aarch64.ks tests/vm: Added a new script for centos.aarch64. 2020-07-11 15:52:59 +01:00
centos.aarch64 tests/vm: switch centos.aarch64 to CentOS 8 Stream 2022-07-18 20:24:36 +02:00
conf_example_aarch64.yml tests/vm: Added configuration file support 2020-07-11 15:52:59 +01:00
conf_example_x86.yml tests/vm: Added configuration file support 2020-07-11 15:52:59 +01:00
freebsd FreeBSD: Upgrade to 12.4 release 2022-12-15 15:19:24 +01:00
haiku.x86_64 tests/vm: Add libslirp to the VM tests 2022-08-29 15:28:51 +02:00
Makefile.include tests/vm: Remove obsolete Fedora VM test 2022-09-20 16:27:39 +01:00
netbsd tests/vm: update NetBSD to 9.3 2022-09-19 15:12:28 +02:00
openbsd tests/vm: update openbsd to release 7.2 2022-10-28 09:39:21 +02:00
README docs: Add docs/devel/testing.rst 2018-02-08 09:23:07 +08:00
ubuntu.aarch64 tests/vm: upgrade Ubuntu 18.04 VM to 20.04 2022-07-18 20:24:36 +02:00
ubuntuvm.py tests/vm: Add common Ubuntu python module 2020-07-11 15:52:59 +01:00

See docs/devel/testing.rst for help.