Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-14848

Lustre test suite's non-zero rc is not propagated to auster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • Lustre 2.14.0, Lustre 2.12.5
    • The issue likely exists in some of the other versions, too.
    • 3
    • Test Infrastructure
    • 9223372036854775807

    Description

      Without the following patch, the rc from a test suite is not propagated to auster. As a result, auster always declares success, making it necessary to check results.yml to determine the outcome of the tests.

      --- a/lustre/tests/auster
      +++ b/lustre/tests/auster
      @@ -210,6 +210,8 @@ run_suite() {
              [[ ! -f $TF_SKIP ]] || rm -f $TF_SKIP
       
              reset_lustre
      +
      +       return $rc
       }
       
       run_suite_logged() {
      @@ -227,10 +229,13 @@ run_suite_logged() {
           local log_name=${suite_name}.suite_log.$(hostname -s).log
           if $verbose; then
               run_suite $suite_name $suite_script 2>&1 |tee  $LOGDIR/$log_name
      +        local rc=${PIPESTATUS[0]}
           else
               run_suite $suite_name $suite_script > $LOGDIR/$log_name 2>&1
      +        local rc=$?
           fi
       
      +    return $rc
       }
      

      Attachments

        Activity

          People

            wc-triage WC Triage
            xiaolinzang Xiaolin Zang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: