-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
When running LTP with ./runltp -f scsi_debug.part1 -s gf201, it fails on the first run.
The cause is that the gf201 test and other simple tests use a directory like /test/growfiles/xxxxx for testing, but the parent directory /test/growfiles/ has not been created. Therefore, when the test tries to create a subdirectory like xxxxx using the mkdir() function in C, the operation fails.
I hope to fix this. An easy solution is that change the mkdir() in C source codes to a new function which implements mkdir -p and I have made a patch. Should I make a Pull Request?
Logs as below:
Running tests.......
<<<test_start>>>
tag=gf201 stime=1764243165
cmdline="growfiles -W gf201 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
growfiles(gf201): Unable to make dir /test/growfiles/reiser
gf201 1 TFAIL : growfiles.c:134: Test failed
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=0
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: 20250930
###############################################################
Done executing testcases.
LTP Version: 20250930
###############################################################
-------------------------------------------
INFO: runltp script is deprecated, try kirk
https://github.com/linux-test-project/kirk
-------------------------------------------Metadata
Metadata
Assignees
Labels
No labels