From 652113f20a92438c2046a3cb1be5f9a74f5caf45 Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Fri, 8 Apr 2022 14:00:13 -0500 Subject: [PATCH] EX-5092 tests: skip hot-pools if yq is not working Skip hot-pools if yq is not working. Test-Parameters: trivial testlist=hot-pools Signed-off-by: John L. Hammond Change-Id: Ia8ff851ea7e06626812ca736a0eeec78ca11b930 Reviewed-on: https://review.whamcloud.com/47020 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Jian Yu --- lustre/tests/hot-pools.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/tests/hot-pools.sh b/lustre/tests/hot-pools.sh index e611111..7119673 100755 --- a/lustre/tests/hot-pools.sh +++ b/lustre/tests/hot-pools.sh @@ -29,6 +29,10 @@ do_nodes $(comma_list $(all_mgt_mdts_nodes)) "which lamigo" &>/dev/null || do_nodes $(comma_list $(all_osts_nodes)) "which lpurge" &>/dev/null || skip_env "lpurge is not installed on OSS" +which yq || skip_env "yq is not installed" +YQ_OUTPUT=$(echo 'pants: OK' | yq .) +[[ -n "$YQ_OUTPUT" ]] || skip_env "yq is not working" + # check passwordless ssh setup among server nodes for mds_node in $(all_mgt_mdts_nodes); do for oss_node in $(all_osts_nodes); do -- 1.8.3.1