Whamcloud - gitweb
LU-15316 tests: use integers in sanity test_255a 50/46350/2
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 28 Jan 2022 05:51:24 +0000 (22:51 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 5 Mar 2022 20:43:06 +0000 (20:43 +0000)
commitc185410b0007f841962979f8d6c367db9c48c2a3
tree264b3dad96302543bb5fe39851d582015319d896
parenta57f7708c9e8ecfeca874cda9cebc6b7ced3a9bb
LU-15316 tests: use integers in sanity test_255a

The [[ ... > ... ]] operator doesn't really compare floats, it
compares strings.  That works as expected if the strings are
the same length, but fails for comparisons like [[ 32 > 123 ]].
Use (( ... > ... )) for comparisons, and only use integer values.

This test has been failing intermittently forever, but the error
was ignored because of running in a VM.

Test-Parameters: trivial
Fixes: f3b8f3fad502 ("tests: fix float comparison in sanity test_255a")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I6787082cd579ae3f1bdd43222a739c939d3ebbe5
Reviewed-on: https://review.whamcloud.com/46350
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Elena Gryaznova <elena.gryaznova@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh