Whamcloud - gitweb
LU-12597 tests: remove comma_list for OSTs part 3 09/56909/5
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 9 Mar 2024 21:47:33 +0000 (14:47 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:50:05 +0000 (20:50 +0000)
commit87beee4a74076c2c7c3a45ea0c6d42446be63c4f
treea6b3d18afeedbcaa6f37704143493c5a9779f4b2
parenta97234edf1f0fcf04ed7a30fe05796098cb3beb9
LU-12597 tests: remove comma_list for OSTs part 3

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: I32509872350987564ca560ad93fdaba0433ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56909
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/obdfilter-survey.sh
lustre/tests/recovery-random-scale.sh
lustre/tests/sanity-scrub.sh
lustre/tests/sanity.sh