tests: enable running fmt_vlib_test.v on != freebsd platforms again

pull/6221/head
Delyan Angelov 2020-08-25 19:09:47 +03:00
parent e3f79df3ac
commit cc82ed28f8
1 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ const (
)
fn test_vlib_fmt() {
$if !freebsd {
$if !vfmt_everything ? {
return
}
fmt_message := "checking that all V source files are vfmt'ed"
@ -30,7 +30,8 @@ fn test_vlib_fmt() {
''
}
mut fmt_bench := benchmark.new_benchmark()
input_files := os.walk_ext('$vroot/vlib/v/', '.v')
os.chdir(vroot)
input_files := os.walk_ext('vlib/v/', '.v').filter(!it.contains('/tests/'))
fmt_bench.set_total_expected_steps(input_files.len)
for istep, ipath in input_files {
fmt_bench.cstep = istep