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

sanity-sec.sh references SLOW before calling init_test_env()

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • Lustre 2.8.0
    • 3
    • 9223372036854775807

    Description

      If SLOW is unset when sanity-sec.sh is run then it effectively defaults to yes. Other tests call init_test_env() before checking SLOW:

      #!/bin/bash
      #
      # Run select tests by setting ONLY, or as arguments to the script.
      # Skip specific tests by setting EXCEPT.
      #                             
      
      set -e
      
      ONLY=${ONLY:-"$*"}
      # bug number for skipped test: 19430 19967 19967                                          
      ALWAYS_EXCEPT="                2     5     6    $SANITY_SEC_EXCEPT"
      # UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!                  
      
      [ "$SLOW" = "no" ] && EXCEPT_SLOW="26"
      
      [ "$ALWAYS_EXCEPT$EXCEPT$EXCEPT_SLOW" ] &&
              echo "Skipping tests: $ALWAYS_EXCEPT $EXCEPT $EXCEPT_SLOW"
      
      SRCDIR=$(dirname $0)
      export PATH=$PWD/$SRCDIR:$SRCDIR:$PWD/$SRCDIR/../utils:$PATH:/sbin
      export NAME=${NAME:-local}
      
      LUSTRE=${LUSTRE:-$(dirname $0)/..}
      . $LUSTRE/tests/test-framework.sh
      init_test_env $@
      . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
      init_logging
      

      Attachments

        Activity

          [LU-7254] sanity-sec.sh references SLOW before calling init_test_env()
          jhammond John Hammond added a comment -

          Sorry. I was looking at not yet landed code.

          jhammond John Hammond added a comment - Sorry. I was looking at not yet landed code.

          People

            wc-triage WC Triage
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: