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>
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