From a56e7cc5ac3ede528aaa05f912c865b09e942de4 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 6 Jun 2020 12:12:14 +0200 Subject: [PATCH] sshfs-benchmark.bash: fix locale trouble and move to tests Locale trouble was sshfs-benchmark.bash: line 31: printf: 4.71: invalid number because printf expected "4,71" in the German locale. Force the C locale. --- {contrib => tests}/sshfs-benchmark.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {contrib => tests}/sshfs-benchmark.bash (98%) diff --git a/contrib/sshfs-benchmark.bash b/tests/sshfs-benchmark.bash similarity index 98% rename from contrib/sshfs-benchmark.bash rename to tests/sshfs-benchmark.bash index 646262a..13c7a0f 100755 --- a/contrib/sshfs-benchmark.bash +++ b/tests/sshfs-benchmark.bash @@ -28,7 +28,7 @@ function prepare_mounts { function etime { T=$(/usr/bin/time -f %e -o /dev/stdout "$@") - printf %20.2f "$T" + LC_ALL=C printf %20.2f "$T" } MYNAME=$(basename "$0")