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
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
centos-8-aarch64.ks
centos.aarch64
conf_example_aarch64.yml
conf_example_x86.yml
freebsd FreeBSD: Upgrade to 12.4 release 2022-12-15 15:19:24 +01:00
haiku.x86_64
Makefile.include tests/vm: Remove obsolete Fedora VM test 2022-09-20 16:27:39 +01:00
netbsd
openbsd tests/vm: update openbsd to release 7.2 2022-10-28 09:39:21 +02:00
README
ubuntu.aarch64
ubuntuvm.py

See docs/devel/testing.rst for help.