X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fyaml.sh;h=bd08571c31b212869ef77b10a913bd2ebd728c35;hb=aa7391445519b46752b5b0adcbe5baa368750e70;hp=7269cb8a109923240a7be1a57a9f3b267568dc71;hpb=4d96e960d574387e8ac4a31249ef1d30c859480b;p=fs%2Flustre-release.git diff --git a/lustre/tests/yaml.sh b/lustre/tests/yaml.sh index 7269cb8..bd08571 100644 --- a/lustre/tests/yaml.sh +++ b/lustre/tests/yaml.sh @@ -57,6 +57,7 @@ yml_test_group() { TEST_GROUP=${TEST_GROUP:-"acc-sm-$(hostname -s)"} TEST_HOST=${TEST_HOST:-$(hostname -s)} TEST_USER=${TEST_USER:-$USER} + TEST_PROJECT=${TEST_PROJECT:-"LUSTRE"} # TestGroup information cat < /dev/null | - sed -e 's/\/etc\///' -e 's/-release//' | head -n1) + version=$(sed -n -e "s/${rhel_pat}/\1/p" /etc/redhat-release) + dist="RHEL ${version}" + elif [ -r /etc/os-release ]; then + name=$(sed -n -e 's/"//g' -e 's/^NAME=//p' /etc/os-release) + version=$(sed -n -e 's/"//g' -e 's/^VERSION_ID=//p' \ + /etc/os-release) + dist="${name} ${version}" else dist="UNKNOWN" fi @@ -89,10 +96,10 @@ release() { } yml_build_info() { - local TEST_DISTRO=$(release) - local LUSTRE_VERSION=$(lctl lustre_build_version | awk '/Lustre version:/ {print $3}') - local LUSTRE_BUILD=${LUSTRE_BUILD_SOURCE:-$(sed 's/-.*//' <<<$LUSTRE_VERSION)} - local FILE_SYSTEM=$(node_fstypes $(hostname -s)) + local TEST_DISTRO=$(release) + local LUSTRE_VERSION=$(lustre_build_version) + local LUSTRE_BUILD=${LUSTRE_BUILD_SOURCE:-$LUSTRE_VERSION} + local FILE_SYSTEM=$(node_fstypes $(hostname -s)) cat <