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

Code execution between test declarations in suite scripts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.0
    • None
    • 3
    • 6604

    Description

      There is present a code execution between test declarations in suite scripts.
      For example sanity.sh contains following code:

      export ORIG_CSUM_TYPE="`lctl get_param -n osc.*osc-[^mM]*.checksum_type |
                              sed 's/.*\[\(.*\)\].*/\1/g' | head -n1`"
      CKSUM_TYPES=${CKSUM_TYPES:-"crc32 adler"}
      [ "$ORIG_CSUM_TYPE" = "crc32c" ] && CKSUM_TYPES="$CKSUM_TYPES crc32c"
      

      Or this in sanityn.sh :

      }
      run_test 39b "mtime change on open, link, unlink, rename  ======"
       
      # this should be set to past
      TEST_39_MTIME=`date -d "1 year ago" +%s`
      
      # bug 11063
      test_39c() {
      

      From one side these codes are executed all the time even if do not want to run it using ONLY parameter for some specific tests. From other side such practice causes generation of unexpected messages in the log files.

      This practice is harmfull we need to get rid of it.

      Attachments

        Activity

          People

            bogl Bob Glossman (Inactive)
            kshatskyy Kyr Shatskyy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: