Whamcloud - gitweb
LU-15316 tests: use integers in sanity test_255a
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 28 Jan 2022 05:51:24 +0000 (22:51 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Mar 2022 18:28:38 +0000 (18:28 +0000)
commit395f3e1a55d5cde4efd809c92d108e28262989bc
tree33460dcb4ae390236bcf82e43a1db38a3dd2f2f0
parentf44e2856dad2edf21e01595fecb9f996d80ea38a
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.

Lustre-change: https://review.whamcloud.com/46350
Lustre-commit: TBD (from a96a4a5894bef714b19086fa09918080f05a7674)

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/46618
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh