[LU-12560] acceptance small doesn't use full path for finding test-groups Created: 17/Jul/19  Updated: 25/Nov/19  Resolved: 16/Aug/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.13.0

Type: Bug Priority: Minor
Reporter: Patrick Farrell (Inactive) Assignee: Patrick Farrell (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 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.



 Comments   
Comment by Gerrit Updater [ 17/Jul/19 ]

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

Comment by Gerrit Updater [ 30/Jul/19 ]

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

Comment by Marco Grossi [ 30/Jul/19 ]

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?

 

 

 

Comment by Patrick Farrell (Inactive) [ 16/Aug/19 ]

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.

Comment by Patrick Farrell (Inactive) [ 16/Aug/19 ]

Fix landed.

Generated at Sat Feb 10 02:53:40 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.