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

v test-fmt: add 1 sec sleep before rebuilding vfmt, to avoid its parallel recompilation afterwards

This commit is contained in:
Delyan Angelov
2020-10-21 15:20:07 +03:00
parent 87f659a0dc
commit 9322e91d1b
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,7 @@
module main
import os
import time
import testing
import v.util
@ -62,6 +63,7 @@ fn prepare_vfmt_when_needed() {
vroot := os.dir(vexe)
vfmtv := os.join_path(vroot, 'cmd', 'tools', 'vfmt.v')
if util.should_recompile_tool(vexe, vfmtv) {
time.sleep_ms(1001) // TODO: remove this when we can get mtime with a better resolution
recompile_file(vexe, vfmtv)
}
}