Whamcloud - gitweb
LU-17527 tests: fix sanity/255a decimal comparison 36/56836/2
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 30 Oct 2024 22:10:56 +0000 (16:10 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 8 Nov 2024 20:43:37 +0000 (20:43 +0000)
commite763a32e17f778edca04d3373b7d26714d0113f7
tree7de8e29d2807d3fa3e771538e5ce164b85669b09
parent65e5706f131b079c5969bebf905dde013fe12fd4
LU-17527 tests: fix sanity/255a decimal comparison

Don't use fractional percentages in the sanity test_255a performance
comparison, since bash (( ... )) cannot compare numbers with decimal
points properly.  Instead, just compute the percentage speedup with
whole numbers, since the test discards anything less than 20% speedup
and a fraction of a percent will not make much difference here.

Test-Parameters: trivial
Fixes: bdd470ff97 ("LU-9069 tests: improve output of sanity test_255a")
Fixes: 395f3e1a55 ("LU-15316 tests: use integers in sanity test_255a")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Id3b37e07168ee2590e52d01f66336027254ced55
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56836
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh