Whamcloud - gitweb
LU-15316 tests: use integers in sanity test_255a 50/46350/1
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 28 Jan 2022 05:51:24 +0000 (22:51 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 28 Jan 2022 06:16:43 +0000 (23:16 -0700)
commita96a4a5894bef714b19086fa09918080f05a7674
tree5563c8ad089230342f7aed704aa3a0e43456a0cf
parente631cd2395564833e9b6b27c64863d624ad0b7df
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
lustre/tests/sanity.sh