X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fyaml.sh;h=13f69bf56beabbef15fe85dfa624c60e5a16e9fb;hb=1bf858d5e1985aabafb90f4a011b737f95504b67;hp=506a1e73ae81201c3873c6ac33c1cae30f066963;hpb=72a29cd28c104ae0948fe5f29146005aa1e5a999;p=fs%2Flustre-release.git diff --git a/lustre/tests/yaml.sh b/lustre/tests/yaml.sh index 506a1e7..13f69bf 100644 --- a/lustre/tests/yaml.sh +++ b/lustre/tests/yaml.sh @@ -18,7 +18,7 @@ yml_nodes_file() { if [ -f $logdir/shared ]; then do_rpc_nodes $(comma_list $(nodes_list)) \ - "yml_node >> $logdir/node.\\\$(hostname).yml" + "yml_node >> $logdir/node.\\\$(hostname -s).yml" else do_rpc_nodes $(comma_list $(nodes_list)) yml_node | split_output fi @@ -31,13 +31,15 @@ yml_results_file() { #TestGroup yml_test_group + #CodeReview + yml_code_review + # Tests printf "Tests:\n" } # Called on the node for which we the info is needed. yml_node() { - local node=$(hostname) logdir=$1 printf "Build:\n" @@ -52,8 +54,8 @@ yml_node() { } yml_test_group() { - TEST_GROUP=${TEST_GROUP:-"acc-sm-$(hostname)"} - TEST_HOST=${TEST_HOST:-$(hostname)} + TEST_GROUP=${TEST_GROUP:-"acc-sm-$(hostname -s)"} + TEST_HOST=${TEST_HOST:-$(hostname -s)} TEST_USER=${TEST_USER:-$USER} # TestGroup information @@ -63,10 +65,13 @@ TestGroup: testhost: $TEST_HOST submission: $(date) user_name: $TEST_USER - EOF } +yml_code_review() { + echo -e $CODE_REVIEW_YAML +} + release() { if [ -r /etc/lsb-release ]; then dist=$(grep 'DISTRIB_ID' /etc/lsb-release | sed 's/DISTRIB_ID=//' | head -1) @@ -85,7 +90,7 @@ release() { yml_build_info() { TEST_DISTRO=$(release) LUSTRE_VERSION=$(lctl lustre_build_version | awk '/Lustre version:/ {print $3}') - LUSTRE_BUILD=$(sed 's/-.*//' <<<$LUSTRE_VERSION) + LUSTRE_BUILD=${LUSTRE_BUILD_SOURCE:-$(sed 's/-.*//' <<<$LUSTRE_VERSION)} cat <> $logdir/node.$host.yml done for num in $(seq $OSTCOUNT); do - host=$(facet_active_host ost$num) + host=$(short_hostname $(facet_active_host ost$num)) yml_entity "OST $num" $host >> $logdir/node.$host.yml done i=1 for host in ${CLIENTS//,/ }; do + host=$(short_hostname $host) yml_entity "Client $i" $host >> $logdir/node.$host.yml i=$((i+1)) done @@ -147,6 +153,7 @@ yml_log_test() { name: $1 description: $TESTSUITE $1 submission: $(date) + report_version: 2 SubTests: EOF fi @@ -154,20 +161,25 @@ EOF yml_log_test_status() { cat <