From: Alex Zhuravlev Date: Fri, 11 Aug 2023 06:26:09 +0000 (+0300) Subject: EX-8059 tests: hot-pools to work in a single node X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=158a6f92942726a6868bf67b7b3c243593f63e38;p=fs%2Flustre-release.git EX-8059 tests: hot-pools to work in a single node hot-pools.sh doesn't start on a single node setup because it tries to find lpurge on $(all_osts_nodes) is empty. make single node setup an exclusion. Test-Parameters: trivial Signed-off-by: Alex Zhuravlev Change-Id: I6520ff7bef92d62fd39f4c9347462d046844ecea Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51925 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/hot-pools.sh b/lustre/tests/hot-pools.sh index e9c1300..a2946a7 100755 --- a/lustre/tests/hot-pools.sh +++ b/lustre/tests/hot-pools.sh @@ -23,10 +23,16 @@ remote_mds_nodsh && skip_env "remote MDS with nodsh" remote_ost_nodsh && skip_env "remote OSS with nodsh" # check if lamigo is installed on MDS(s) and lpurge is installed on OSS(s) -do_nodes $(comma_list $(all_mgt_mdts_nodes)) "which lamigo" &>/dev/null || - skip_env "lamigo is not installed on MDS" -do_nodes $(comma_list $(all_osts_nodes)) "which lpurge" &>/dev/null || - skip_env "lpurge is not installed on OSS" +if ! local_mode; then + do_nodes $(comma_list $(all_mgt_mdts_nodes)) "which lamigo" &>/dev/null || + skip_env "lamigo is not installed on MDS" + do_nodes $(comma_list $(all_osts_nodes)) "which lpurge" &>/dev/null || + skip_env "lpurge is not installed on OSS" +else + which lamigo &>/dev/null || skip_env "lamigo is not installed" + which lpurge &>/dev/null || skip_env "lpurge is not installed" + +fi which yq || skip_env "yq is not installed" YQ_OUTPUT=$(echo 'pants: OK' | yq .)