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.
This commit is contained in:
Jakob Unterwurzacher 2020-06-06 12:12:14 +02:00
parent 274e0d27b7
commit a56e7cc5ac

View File

@ -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")