Whamcloud - gitweb
LU-12597 tests: remove comma_list for OSTs part 2 85/56885/4
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 9 Mar 2024 21:41:41 +0000 (14:41 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:49:52 +0000 (20:49 +0000)
commita97234edf1f0fcf04ed7a30fe05796098cb3beb9
treebb56fe57e4963558cd20f2048b34012810b62472
parent6ea69c3e52923048f837f17160f2984f7596ccde
LU-12597 tests: remove comma_list for OSTs part 2

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: I02509872350987564ca560ad93fdaba0423ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56885
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/recovery-scale-lib.sh
lustre/tests/recovery-small.sh
lustre/tests/replay-single.sh
lustre/tests/sanity-flr.sh
lustre/tests/sanity-lfsck.sh
lustre/tests/sanity-quota.sh
lustre/tests/test-framework.sh