Skip to content

Commit

Permalink
tests: use real path of a test folder for repl tests (#20007)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier committed Nov 27, 2023
1 parent b9a7de5 commit ef59808
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/slow_tests/repl/repl_test.v
Expand Up @@ -71,11 +71,12 @@ fn worker_repl(mut p pool.PoolProcessor, idx int, thread_id int) voidptr {
p.set_thread_context(idx, tls_bench)
}
tls_bench.cstep = idx
tfolder := os.join_path(cdir, 'vrepl_tests_${idx}')
mut tfolder := os.join_path(cdir, 'vrepl_tests_${idx}')
if os.is_dir(tfolder) {
os.rmdir_all(tfolder) or { panic(err) }
}
os.mkdir(tfolder) or { panic(err) }
tfolder = os.real_path(tfolder)
file := p.get_item[string](idx)
session.bmark.step()
tls_bench.step()
Expand Down

0 comments on commit ef59808

Please sign in to comment.