[PATCH 10/11] t/verify: Windows --output work-around
Vincent Fu <[email protected]>
| Newsgroups | org.kernel.vger.fio |
|---|---|
| Message-ID | <[email protected]> |
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. Signed-off-by: Vincent Fu <[email protected]> --- t/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/verify.py b/t/verify.py index 8f0cb1ef..99ed61dc 100755 --- a/t/verify.py +++ b/t/verify.py @@ -74,7 +74,7 @@ class VerifyTest(FioJobCmdTest): f"--ioengine={self.fio_opts['ioengine']}", f"--rw={self.fio_opts['rw']}", f"--verify={self.fio_opts['verify']}", - f"--output={self.filenames['output']}", + f"--output={os.path.basename(self.filenames['output'])}", ] for opt in VERIFY_OPT_LIST: if opt in self.fio_opts: -- 2.47.2