[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH-for-8.0] tests/vm: Update get_default_jobs() to work on non-x
From: |
Alex Bennée |
Subject: |
Re: [PATCH-for-8.0] tests/vm: Update get_default_jobs() to work on non-x86_64 non-KVM hosts |
Date: |
Sat, 07 Jan 2023 15:13:08 +0000 |
User-agent: |
mu4e 1.9.11; emacs 29.0.60 |
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> 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>
Queued to testing/next, thanks.
--
Alex Bennée
Virtualisation Tech Lead @ Linaro