3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

test-runner: double RAM for --valgrind

It seems 256MB was right on the edge if valgrind was being used and
sometimes the test would fail with OOM exceptions.
This commit is contained in:
James Prestwood 2022-08-22 10:01:46 -07:00 committed by Denis Kenzior
parent 41ce56bf0d
commit 90dc2e5547

View File

@ -370,6 +370,7 @@ class QemuRunner(RunnerAbstract):
usb_adapters = None
pci_adapters = None
ram = 256
super().__init__(args)
@ -400,11 +401,14 @@ class QemuRunner(RunnerAbstract):
kern_log = "ignore_loglevel" if "kernel" in args.verbose else "quiet"
if args.valgrind:
ram *= 2
qemu_cmdline = [
'qemu-system-x86_64',
'-machine', 'type=q35,accel=kvm:tcg',
'-nodefaults', '-no-user-config', '-monitor', 'none',
'-display', 'none', '-m', '256M', '-nographic', '-vga',
'-display', 'none', '-m', '%dM' % ram, '-nographic', '-vga',
'none', '-no-acpi', '-no-hpet',
'-no-reboot', '-fsdev',
'local,id=fsdev-root,path=/,readonly=on,security_model=none,multidevs=remap',