diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2021-04-02 00:26:56 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-05-11 01:05:06 +0200 |
commit | 00ad25f6019b3bd61bd2ddc128509728b49ac589 (patch) | |
tree | 49788ba066e4ff095366e816183f10c62cc8058a | |
parent | torture: Correctly fetch number of CPUs for non-English languages (diff) | |
download | linux-00ad25f6019b3bd61bd2ddc128509728b49ac589.tar.xz linux-00ad25f6019b3bd61bd2ddc128509728b49ac589.zip |
torture: Set kvm.sh language to English
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 <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rwxr-xr-x | tools/testing/selftests/rcutorture/bin/kvm.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |