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

test-framework defect: TF_FAIL is not initialised

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • Lustre 2.7.0
    • 3
    • 9223372036854775807

    Description

      test-framework:

      #!/bin/bash
      trap 'print_summary && touch $TF_FAIL && \
          echo "test-framework exiting on error"' ERR
      

      TF_FAIL is initialised in auster only :

      ./auster:export TF_FAIL=/tmp/tf.fail
      ./auster:	rm -f $TF_FAIL
      ./auster:	if [[ $rc -ne 0 || -f $TF_FAIL ]]; then
      

      This leads t-f to fail with " touch: missing file operand" if the suites are run not under auster control :

      fre908: status        script            Total(sec) E(xcluded) S(low) 
      fre908: ------------------------------------------------------------------------------------
      fre908: 
      fre908: touch: missing file operand
      fre908: Try `touch --help' for more information.
      fre907: ++ print_summary
      fre907: ++ trap 0
      

      Attachments

        Activity

          People

            yujian Jian Yu
            egryaznova Elena Gryaznova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: