Whamcloud - gitweb
LU-17527 tests: fix syntax error in test_255a 09/54009/3
authorCourrier Guillaume <guillaume.courrier@cea.fr>
Mon, 12 Feb 2024 15:19:03 +0000 (16:19 +0100)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Feb 2024 07:10:03 +0000 (07:10 +0000)
commit3520d519bb54162231765115cf8d711639c99a62
tree3d3f2ef0e529f95093f5239d0aa0d19328daf15b
parent55c143a66df9023808530a765c14ba506ec1b8e1
LU-17527 tests: fix syntax error in test_255a

The syntax error comes from the fact that the average speed can be less
than 1 (e.g. .85) which means that ${average_cache%.*} is actually empty
which means that the left parameter of < is empty.

This patch fixes the test by using the speedup instead. The test should
compare speedup_cache and speedup_ladvise with lowest_speedup instead of the
average read time.

Test-Parameters: trivial testlist=sanity env=ONLY=255a,ONLY_REPEAT=50
Signed-off-by: Courrier Guillaume <guillaume.courrier@cea.fr>
Change-Id: Ie2cd24f813a0efe65e3391a3fb664b9db39a9f92
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54009
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Etienne AUJAMES <eaujames@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lustre/tests/sanity.sh