Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3958880pxj; Tue, 11 May 2021 16:14:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd3SKQhrdz+CpjjkBGODgtlcL5ZtOdXG87UA+3KnGXUyhCNp5kZxwO3/z0l/w4pquZhAVH X-Received: by 2002:a4a:4ac7:: with SMTP id k190mr25067865oob.9.1620774846567; Tue, 11 May 2021 16:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620774846; cv=none; d=google.com; s=arc-20160816; b=osyk2VF0oqzPlAcp4kIpwDzVk6j8AzaEZDWeDXFEjeJuJ9obsqAzLFTqhqa+BCNSsZ ddzfjx3NDI9Pj92KnR0s9gSnU1KnBtOabDR64y2uyfLyDh/fFr39Cz5gQ4lUT75q16jz uTp+lhhC9z1Rb4Iv/86JxXrFBfRtmeaETZs27vXukS66tq/5hRbiIfPhbWfcYyQwEoy1 2mrtPymjFYTUDHtoNDFZMS7RoPBYdnK1a9g+g/DO5gHItimqe5l0Y04GPabjI4g6685t z/OxBZDUcy/NMsRe8iGqUnzw8GDJ4+JecM/rGkGIEKTTFzZkG3sC65siUPtH/+RM+YrP ohBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Vxijyl8Blm7vf5b6/pC0NJ+t65a+EqVudF96MbDxcmg=; b=SSZMZEL6uzmM7fMJ6l5qQ5cwzsnJYZP2x1SDWU5VInT22VCsxdJRI8gEtQqjNkemZP X/VSCT6t3U7gz5lQthRMo3LU02bYfyTgXgKvbSthWpXC+LNz0UEtyH59ebxlp7oVNmJ7 nuuZ7GzXE7FZHSDZxrivA7XdBeuFbq/OTU4W1th2wxOMVHN8AFymsKlT7Nu5RXtaRjb4 VO4rkHzuQPIqM5sFhyf+gpS2zTCArYLJRpkwE3alTbi81f4uh7631CHSNJz0jk5T06Y7 OKkXA7X/1b/ZOqbYDqx+aR4G4EswbPbtJ/nBRr0Hifxh9qsJp3ns590XFt4JVvwsv3Fe oyeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H34P+mC6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si20999717ote.257.2021.05.11.16.13.53; Tue, 11 May 2021 16:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H34P+mC6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbhEKXOA (ORCPT + 99 others); Tue, 11 May 2021 19:14:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:48182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230225AbhEKXNc (ORCPT ); Tue, 11 May 2021 19:13:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E8F76192B; Tue, 11 May 2021 23:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620774745; bh=g+6d3phEhzedyJwNDVwtwj0AAwQ7beVUbSC1enFErhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H34P+mC6HMkBbKSA0bxnO4hhM3ZXzXHo+8PIKiEKU3ZMcmbU1jSmyslPP3AY31HIs 5YUcl8ZHKdE8F8jTBcW0pl3ZGe8J2fhRMYHaiKE7EwJuUrHMurLoI0B5RqzRXdD0Bj Vru4Y0eH7Q7KysschYFBQ3o5mhLGh6YIqn+uUw/eqy4DbOcVhm5EJVuwLm1BogoGGE E5/nejWDXvtp2ywJHPNHwo2GMXOsE1eYqjjKXkufG7FGkdZirG1ZicgNpejD6AeHCB LhEZfefyWPJTXTn7bwvztkSBhTBvuapgAtLstFpxo+poOfGVicrTRfEqIAcJyoRIc3 ivxtCDdMdu5MQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 867A45C0E3F; Tue, 11 May 2021 16:12:24 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, "Paul E. McKenney" , Frederic Weisbecker Subject: [PATCH tip/core/rcu 16/26] torture: Set kvm.sh language to English Date: Tue, 11 May 2021 16:12:13 -0700 Message-Id: <20210511231223.2895398-16-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20210511231149.GA2895263@paulmck-ThinkPad-P17-Gen-1> References: <20210511231149.GA2895263@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of the code invoked directly and indirectly from kvm.sh parses the output of commands. This parsing assumes English, which can cause failures if the user has set some other language. In a few cases, there are language-independent commands available, but this is not always the case. Therefore, as an alternative to polyglot parsing, this commit sets the LANG environment variable to en_US.UTF-8. Reported-by: Frederic Weisbecker Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/rcutorture/bin/kvm.sh b/tools/testing/selftests/rcutorture/bin/kvm.sh index fab3bd9cf9d1..390bb97b07d8 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm.sh @@ -20,6 +20,9 @@ mkdir $T cd `dirname $scriptname`/../../../../../ +# This script knows only English. +LANG=en_US.UTF-8; export LANG + dur=$((30*60)) dryrun="" KVM="`pwd`/tools/testing/selftests/rcutorture"; export KVM -- 2.31.1.189.g2e36527f23