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

acceptance small doesn't use full path for finding test-groups

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.13.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      The acceptance-small script looks for test-groups/regression like this:

      DEFAULT_SUITES="${DEFAULT_SUITES:-$(cat test-groups/regression)}" 

      This means it can only find test-groups/regression if auster is started in the appropriate directory.  Instead, it needs to use $LUSTRE/tests before test-groups.

      Attachments

        Activity

          [LU-12560] acceptance small doesn't use full path for finding test-groups

          Fix landed.

          pfarrell Patrick Farrell (Inactive) added a comment - Fix landed.

          Marco,

          Generally, the tests are run via auster, like (assuming this is your path for auster) /usr/lib64/lustre/tests/auster [name of suite] .  Note that I believe the problem you're having is not unique to acceptance-small with this patch - it should also happen with every test suite other than acceptance-small.

          pfarrell Patrick Farrell (Inactive) added a comment - Marco, Generally, the tests are run via auster, like (assuming this is your path for auster) /usr/lib64/lustre/tests/auster [name of suite]  .  Note that I believe the problem you're having is not unique to acceptance-small with this patch - it should also happen with every test suite other than acceptance-small.
          mgrossi Marco Grossi (Inactive) added a comment - - edited

          I used to run test as:

          # MY_LUSTRE_PATH=<path_to>/lustre
          # cd ${MY_LUSTRE_PATH}/tests
          # NAME=local ./acceptance-small.sh

          Doing so now returns:

          cat: /tests/test-groups/regression: No such file or directory
          

          Providing full path via the LUSTRE env variable, executing from the homedir, returns: 

          # cd ~
          # MY_LUSTRE_PATH=<path_to>/lustre
          # NAME=local LUSTRE=${MY_LUSTRE_PATH} ${MY_LUSTRE_PATH}/tests/acceptance-small.sh
          
          sh: auster: No such file or directory

          The only way I'm able now to get it to work is by launching from the tests dir, and providing the LUSTRE env var: 

          # cd ${MY_LUSTRE_PATH}/tests
          # NAME=local LUSTRE=${MY_LUSTRE_PATH} ./acceptance-small.sh

          Am I supposed to launch the test via a specific command, that will set the LUSTRE env var?

           

           

           

          mgrossi Marco Grossi (Inactive) added a comment - - edited I used to run test as: # MY_LUSTRE_PATH=<path_to>/lustre # cd ${MY_LUSTRE_PATH}/tests # NAME=local ./acceptance-small.sh Doing so now returns: cat: /tests/test-groups/regression: No such file or directory Providing full path via the LUSTRE env variable, executing from the homedir, returns:  # cd ~ # MY_LUSTRE_PATH=<path_to>/lustre # NAME=local LUSTRE=${MY_LUSTRE_PATH} ${MY_LUSTRE_PATH}/tests/acceptance-small.sh sh: auster: No such file or directory The only way I'm able now to get it to work is by launching from the tests dir, and providing the LUSTRE env var:  # cd ${MY_LUSTRE_PATH}/tests # NAME=local LUSTRE=${MY_LUSTRE_PATH} ./acceptance-small.sh Am I supposed to launch the test via a specific command, that will set the LUSTRE env var?      

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35541/
          Subject: LU-12560 tests: Use full path for test-groups
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: ca3c77b8424961e82db642c748e1078ae07e9d97

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35541/ Subject: LU-12560 tests: Use full path for test-groups Project: fs/lustre-release Branch: master Current Patch Set: Commit: ca3c77b8424961e82db642c748e1078ae07e9d97

          Patrick Farrell (pfarrell@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35541
          Subject: LU-12560 tests: Use full path for test-groups
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 09bac9c07f218d8ba9dfa28434c69554cca2220b

          gerrit Gerrit Updater added a comment - Patrick Farrell (pfarrell@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35541 Subject: LU-12560 tests: Use full path for test-groups Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 09bac9c07f218d8ba9dfa28434c69554cca2220b

          People

            pfarrell Patrick Farrell (Inactive)
            pfarrell Patrick Farrell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: