On Tue, 2012-08-07 at 09:50 -0300, Cleber Rosa wrote: > Stock 'lscpu' on distros such as RHEL 6 (and possibly others) > have a different output format on the socket line. > > This patch allows both output formats by default, and makes the > physical_resources_check work on such distros out of the box.
Excellent, applied, thanks! > Signed-off-by: Cleber Rosa <[email protected]> > --- > client/virt/subtests.cfg.sample | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/client/virt/subtests.cfg.sample b/client/virt/subtests.cfg.sample > index 712690e..534529f 100644 > --- a/client/virt/subtests.cfg.sample > +++ b/client/virt/subtests.cfg.sample > @@ -1781,7 +1781,7 @@ variants: > vio_driver_chk_cmd = "" > mem_chk_re_str = ([0-9]+) > cpu_cores_chk_cmd = "lscpu | grep '^Core'" > - cpu_sockets_chk_cmd = "lscpu | grep '^Socket'" > + cpu_sockets_chk_cmd = "lscpu | grep -E '(^Socket|^CPU socket)'" > cpu_threads_chk_cmd = "lscpu | grep '^Thread'" > chk_timeout = 240 > _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
