mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 09:39:25 +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:
parent
41ce56bf0d
commit
90dc2e5547
@ -370,6 +370,7 @@ class QemuRunner(RunnerAbstract):
|
|||||||
|
|
||||||
usb_adapters = None
|
usb_adapters = None
|
||||||
pci_adapters = None
|
pci_adapters = None
|
||||||
|
ram = 256
|
||||||
|
|
||||||
super().__init__(args)
|
super().__init__(args)
|
||||||
|
|
||||||
@ -400,11 +401,14 @@ class QemuRunner(RunnerAbstract):
|
|||||||
|
|
||||||
kern_log = "ignore_loglevel" if "kernel" in args.verbose else "quiet"
|
kern_log = "ignore_loglevel" if "kernel" in args.verbose else "quiet"
|
||||||
|
|
||||||
|
if args.valgrind:
|
||||||
|
ram *= 2
|
||||||
|
|
||||||
qemu_cmdline = [
|
qemu_cmdline = [
|
||||||
'qemu-system-x86_64',
|
'qemu-system-x86_64',
|
||||||
'-machine', 'type=q35,accel=kvm:tcg',
|
'-machine', 'type=q35,accel=kvm:tcg',
|
||||||
'-nodefaults', '-no-user-config', '-monitor', 'none',
|
'-nodefaults', '-no-user-config', '-monitor', 'none',
|
||||||
'-display', 'none', '-m', '256M', '-nographic', '-vga',
|
'-display', 'none', '-m', '%dM' % ram, '-nographic', '-vga',
|
||||||
'none', '-no-acpi', '-no-hpet',
|
'none', '-no-acpi', '-no-hpet',
|
||||||
'-no-reboot', '-fsdev',
|
'-no-reboot', '-fsdev',
|
||||||
'local,id=fsdev-root,path=/,readonly=on,security_model=none,multidevs=remap',
|
'local,id=fsdev-root,path=/,readonly=on,security_model=none,multidevs=remap',
|
||||||
|
Loading…
Reference in New Issue
Block a user