linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.33k stars 1.02k forks source link

For few I/O tests, paths are hardcoded under runtest. Not in uniform to match with TMPDIR #689

Open chetjain opened 4 years ago

chetjain commented 4 years ago

Currently runltp -d cannot be leveraged with the following testsuites.

(1) fcntl-locktests PATH name is hardcoded in runtest and TMPDIR path is not getting picked FCNTL_LOCKTESTS locktests -n 100 -f /tmp/io_0/fcntl_locktest_testfile Change this to FCNTL_LOCKTESTS locktests -n 100 -f $TMPDIR/fcntl_locktest_testfile for all lines

(2) scsi_debug.part1 /test/growfiles should be replaced by $TMPDIR %s/\/test\/growfiles/\$TMPDIR

(3) lvm.part1 & (4) lvm.part2 %s/\/test\/growfiles/\$TMPDIR/g

chetjain commented 4 years ago

I was able to test after changing those files under runtest folder. It was picking new directory successfully with runltp -d. Let me know, if I can submit the fix

chetjain commented 4 years ago

Created a pull request https://github.com/linux-test-project/ltp/pull/692