Whamcloud - gitweb
LU-12597 tests: remove comma_list for OSTs part 4 32/57132/4
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 9 Oct 2024 22:43:00 +0000 (16:43 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:50:46 +0000 (20:50 +0000)
commita173c24d5aba7b3a5b5d53d29f7b3a636e469f91
tree80dcc30d4e5297e3f782563c2df8c0329ed0be76
parentfd51fda67c83afd011480b8323e0f3e05e96cfc1
LU-12597 tests: remove comma_list for OSTs part 4

Most places that use $(osts_nodes) also call $(comma_list ...) at the
same time.  Rather than returning a space-separated list of nodes from
those functions, instead return a comma-separated list suitable for
use by do_nodes() and similar functions calling pdsh internally.

This avoids the repeated calls to comma_list() and makes the tests
easier to read.  Also, since comma_list() internally deduplicates the
node list, it isn't necessary to do that in the callers.  A few tests
need to convert comma-separated osts_nodes into space-separated nodes.

Test-Parameters: trivial
Change-Id: I04509872350987564ca560ad93fdaba0433ebbe5
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57132
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh