Whamcloud - gitweb
LU-17156 tests: Improve zfs_or_rotational() 73/52973/8
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Fri, 3 Nov 2023 09:06:03 +0000 (14:36 +0530)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Nov 2023 21:43:12 +0000 (21:43 +0000)
commitb0262a00714f2d77b6d6ba745169c8fa18d38b32
treed99780d2f64fa8609618e984c7de5190d3b67827
parent0f61c9ff72f34270b31e1b0a5d0a67691b815994
LU-17156 tests: Improve zfs_or_rotational()

Improve zfs_or_rotational() under test-framework.sh to handle
get_param failure gracefully and not throw bash syntax error.

Fix ostname_from_index() to print the OST name once instead of
twice if there are multiple mountpoints (e.g. sanityn).  If the
caller wants the specific name when there are two different
filesystems mounted, the specific mountpoint should be given.

Test-Parameters: trivial testlist=sanityn
Fixes: 43c3a804fe ("LU-13805 tests: Add racing tests of BIO, DIO")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I0b914236865574dadd4ba0cb9a0ba7a7775fefc5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52973
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/test-framework.sh