Whamcloud - gitweb
EX-5092 tests: skip hot-pools if yq is not working
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 8 Apr 2022 19:00:13 +0000 (14:00 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Wed, 13 Apr 2022 14:57:48 +0000 (14:57 +0000)
Skip hot-pools if yq is not working.

Test-Parameters: trivial testlist=hot-pools
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ia8ff851ea7e06626812ca736a0eeec78ca11b930
Reviewed-on: https://review.whamcloud.com/47020
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
lustre/tests/hot-pools.sh

index e611111..7119673 100755 (executable)
@@ -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