Whamcloud - gitweb
LU-12597 tests: remove comma_list for OSTs part 1 44/56844/2
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 9 Mar 2024 21:38:35 +0000 (14:38 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:49:36 +0000 (20:49 +0000)
commit6ea69c3e52923048f837f17160f2984f7596ccde
tree38259577848319624ddd9112c931892bd1cc76eb
parent5bac854028d7bb4067ddad6fb2a4522eeb716782
LU-12597 tests: remove comma_list for OSTs part 1

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
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I01509872350987564ca560ad93fdaba0413ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56844
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh
lustre/tests/lfsck-performance.sh
lustre/tests/lnet-selftest.sh
lustre/tests/mds-survey.sh