From 81b238e6f743b272c1703c3a2fe618ee4f2f3b4c Mon Sep 17 00:00:00 2001 From: Mike <45243121+tankf33der@users.noreply.github.com> Date: Mon, 12 May 2025 18:08:22 +0300 Subject: [PATCH] tools: fix how the relative path of the tests run by `v test` is formed, by removing ts.vroot only from beginning of the path (fix #24363) (#24467) --- cmd/tools/modules/testing/common.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/modules/testing/common.v b/cmd/tools/modules/testing/common.v index 9a43588934..56858533bd 100644 --- a/cmd/tools/modules/testing/common.v +++ b/cmd/tools/modules/testing/common.v @@ -417,7 +417,7 @@ fn worker_trunner(mut p pool.PoolProcessor, idx int, thread_id int) voidptr { cmd_options << ' -enable-globals' } if ts.root_relative { - relative_file = relative_file.replace(ts.vroot + os.path_separator, '') + relative_file = relative_file.replace_once(ts.vroot + os.path_separator, '') } file := os.real_path(relative_file) mtc := MessageThreadContext{