X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fauster;h=716a934efb055ce7daf45c025576a3a7d6f98e7b;hp=ff29a4cddbb1db239290b8d9f847aea97c6e154a;hb=1423688b1f861bd0da4d342d2cfb275f3a0de18d;hpb=18bba79f1600351b1de9285f6addece88919e565;ds=sidebyside diff --git a/lustre/tests/auster b/lustre/tests/auster old mode 100644 new mode 100755 index ff29a4c..716a934 --- a/lustre/tests/auster +++ b/lustre/tests/auster @@ -13,7 +13,7 @@ set -e export TF_FAIL=/tmp/tf.fail usage() { - cat < $LOGDIR/$log_name 2>&1 -# run_suite $suite_name $suite_script "${!suite_only}" 2>&1 |tee $LOGDIR/$log_name + if $verbose; then + run_suite $suite_name $suite_script "${!suite_only}" 2>&1 |tee $LOGDIR/$log_name + else + run_suite $suite_name $suite_script "${!suite_only}" > $LOGDIR/$log_name 2>&1 + fi } # # Add this to test-framework somewhere. reset_logging() { - export LOGDIR=${1:-/tmp/test_logs/$(date +%Y-%m-%d)/$(date +%H%M%S)} + export LOGDIR=${1:-${test_logs_dir}/$(date +%Y-%m-%d)/$(date +%H%M%S)} unset YAML_LOG init_logging } @@ -286,13 +280,27 @@ run_suites() { run_suite_logged $suite || RC=$? echo $suite returned $RC done - if [ $logging = true ]; then - ./maloo_upload.sh $LOGDIR + if $upload_logs; then + $upload_script fi n=$((n + 1)) done } +if [ $upload_logs = true ] ; then + upload_script=$(find_script_in_path maloo_upload.sh $PATH:$LUSTRE/tests) + if [[ -z $upload_script ]]; then + echo "Can't find maloo_upload.sh script" + exit 1 + fi + + if [ ! -r ~/.maloorc ] ; then + echo "A ~/.maloorc file is required in order to upload results." + echo "Visit your maloo web interface to download your .maloorc file" + exit 1 + fi +fi + export NAME MOUNT START CLEAN . ${CONFIG:-$LUSTRE/tests/cfg/$NAME.sh}