Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-05 Thread Paul E. McKenney
On Mon, Apr 05, 2021 at 04:23:09PM +0200, Christian Kujau wrote: > On Thu, 1 Apr 2021, Paul E. McKenney wrote: > > +# This script knows only English. > > +LANG=en_US.UTF-8; export LANG > > This, too, will only work if en_US.UTF-8 is installed . Check with "locale > -a" if it is. Also, Perl will

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-05 Thread Christian Kujau
On Thu, 1 Apr 2021, Paul E. McKenney wrote: > +# This script knows only English. > +LANG=en_US.UTF-8; export LANG This, too, will only work if en_US.UTF-8 is installed . Check with "locale -a" if it is. Also, Perl will complain loudly if the language is not installed (try: "LANG=en_US.UTF-9

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Frederic Weisbecker
On Thu, Apr 01, 2021 at 03:33:29PM -0700, Paul E. McKenney wrote: > On Thu, Apr 01, 2021 at 11:08:02PM +0200, Frederic Weisbecker wrote: > How about like this? I put this only in kvm.sh for the moment, but > if these keep cropping up I will just hit all the scripts. ;-) Sure, works for me!

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Paul E. McKenney
On Thu, Apr 01, 2021 at 11:08:02PM +0200, Frederic Weisbecker wrote: > On Thu, Apr 01, 2021 at 02:02:53PM -0700, Paul E. McKenney wrote: > > On Thu, Apr 01, 2021 at 10:41:13PM +0200, Frederic Weisbecker wrote: > > > On Thu, Apr 01, 2021 at 01:40:22PM -0700, Paul E. McKenney wrote: > > > > On Thu,

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Frederic Weisbecker
On Thu, Apr 01, 2021 at 02:02:53PM -0700, Paul E. McKenney wrote: > On Thu, Apr 01, 2021 at 10:41:13PM +0200, Frederic Weisbecker wrote: > > On Thu, Apr 01, 2021 at 01:40:22PM -0700, Paul E. McKenney wrote: > > > On Thu, Apr 01, 2021 at 10:31:12PM +0200, Frederic Weisbecker wrote: > > > > On Thu,

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Paul E. McKenney
On Thu, Apr 01, 2021 at 10:41:13PM +0200, Frederic Weisbecker wrote: > On Thu, Apr 01, 2021 at 01:40:22PM -0700, Paul E. McKenney wrote: > > On Thu, Apr 01, 2021 at 10:31:12PM +0200, Frederic Weisbecker wrote: > > > On Thu, Apr 01, 2021 at 11:51:16AM -0700, Paul E. McKenney wrote: > > > > On Thu,

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Frederic Weisbecker
On Thu, Apr 01, 2021 at 01:40:22PM -0700, Paul E. McKenney wrote: > On Thu, Apr 01, 2021 at 10:31:12PM +0200, Frederic Weisbecker wrote: > > On Thu, Apr 01, 2021 at 11:51:16AM -0700, Paul E. McKenney wrote: > > > On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > > > > Grepping

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Paul E. McKenney
On Thu, Apr 01, 2021 at 10:31:12PM +0200, Frederic Weisbecker wrote: > On Thu, Apr 01, 2021 at 11:51:16AM -0700, Paul E. McKenney wrote: > > On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > > > Grepping for "CPU" on lscpu output isn't always successful, depending > > > on the

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Frederic Weisbecker
On Thu, Apr 01, 2021 at 11:51:16AM -0700, Paul E. McKenney wrote: > On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > > Grepping for "CPU" on lscpu output isn't always successful, depending > > on the local language setting. As a result, the build can be aborted > > early

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Paul E. McKenney
On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > Grepping for "CPU" on lscpu output isn't always successful, depending > on the local language setting. As a result, the build can be aborted > early with: > > "make: the '-j' option requires a positive integer argument"

[PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Frederic Weisbecker
Grepping for "CPU" on lscpu output isn't always successful, depending on the local language setting. As a result, the build can be aborted early with: "make: the '-j' option requires a positive integer argument" Prefer a more generic solution. Signed-off-by: Frederic Weisbecker ---