1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: enable running v test . inside vlib/v/ too

This commit is contained in:
Delyan Angelov
2020-09-18 19:20:01 +03:00
parent b4535acbac
commit 78e6ddee75
3 changed files with 6 additions and 2 deletions

View File

@ -150,9 +150,9 @@ fn worker_trunner(mut p sync.PoolProcessor, idx int, thread_id int) voidptr {
}
tls_bench.no_cstep = true
dot_relative_file := p.get_string_item(idx)
mut relative_file := dot_relative_file
mut relative_file := dot_relative_file.replace('./', '')
if ts.root_relative {
relative_file = relative_file.replace(ts.vroot + os.path_separator, '').replace('./', '')
relative_file = relative_file.replace(ts.vroot + os.path_separator, '')
}
file := os.real_path(relative_file)
// Ensure that the generated binaries will be stored in the temporary folder.