[LTP] [PATCH] Add env variable as workaround for test issues in VMs

Jan Stancek jstancek@redhat.com
Mon Apr 27 09:31:22 CEST 2020



----- Original Message -----
> Hi Martin,
> 
> > Timer tests often fail on sleep overrun when LTP is running inside a VM.
> > The main cause is usually that the VM doesn't get enough CPU time to wake
> > up
> > the test process in time.
> Cannot we detect presence of "hypervisor" in flags in /proc/cpuinfo?
> I though it was quite reliable for detecting VM.

We have tst_is_virt().

I see these tests fail frequently on ppc and s390, so I'm all for
some switch that would make it more forgiving if running under virt.



More information about the ltp mailing list