Skip to content

Commit 2c8ba65

Browse files
committed
t/verify: Windows --output work-around
For a reason I do not understand Cygwin chokes when fio is given an option like the following: --output==/home/vincent.fu/fio-vpi/verify-test-20250505-172034/pattern_%o_vpi_10_vi_1024/3001/verify3001.output This is the resulting error: pattern: %o, verify_pattern_interval: 129, verify_interval: 1024 Test 3000 FAILED: [Errno 2] No such file or directory: '/home/vincent.fu/fio-vpi/verify-test-20250505-172034/pattern_%o_vpi_129_vi_1024/3000/verify3000.output' 3000 Test 3001 FAILED: [Errno 2] No such file or directory: '/home/vincent.fu/fio-vpi/verify-test-20250505-172034/pattern_%o_vpi_129_vi_1024/3001/verify3001.output' 3001 0 test(s) passed, 2 failed, 0 skipped It's not the length because other paths are longer. Even if I escape the % the error still occurs. Work around this by simply using the filename instead of the entire path. The job runs with the test directory as the current working directory, so it's fine to just use the filename only. Link: https://lore.kernel.org/r/20250508185832.3702-11-vincent.fu@samsung.com Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
1 parent 2115134 commit 2c8ba65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/verify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def setup(self, parameters):
7474
f"--ioengine={self.fio_opts['ioengine']}",
7575
f"--rw={self.fio_opts['rw']}",
7676
f"--verify={self.fio_opts['verify']}",
77-
f"--output={self.filenames['output']}",
77+
f"--output={os.path.basename(self.filenames['output'])}",
7878
]
7979
for opt in VERIFY_OPT_LIST:
8080
if opt in self.fio_opts:

0 commit comments

Comments
 (0)