From cc82ed28f8ef9b5dc9f7b93a6f2b97a12feee425 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 25 Aug 2020 19:09:47 +0300 Subject: [PATCH] tests: enable running fmt_vlib_test.v on != freebsd platforms again --- vlib/v/fmt/fmt_vlib_test.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vlib/v/fmt/fmt_vlib_test.v b/vlib/v/fmt/fmt_vlib_test.v index 8c50442c3b..33bdfd8c76 100644 --- a/vlib/v/fmt/fmt_vlib_test.v +++ b/vlib/v/fmt/fmt_vlib_test.v @@ -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