[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 |
| Comment by Gerrit Updater [ 30/Jul/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35541/ |
| 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. |