From 6fef27f37132d22f27f45962e61479d8195e7f13 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 26 May 2026 13:09:14 +0300 Subject: [PATCH] tools: skip v2 from `v test-self` --- ci/macos_ci.vsh | 4 ++-- cmd/tools/vtest-self.v | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/macos_ci.vsh b/ci/macos_ci.vsh index 485e369af..a1f56264b 100644 --- a/ci/macos_ci.vsh +++ b/ci/macos_ci.vsh @@ -53,10 +53,10 @@ fn test_pure_v_math_module() { fn self_tests() { if common.is_github_job { - exec('VJOBS=1 v -d self_ignore_v2 -silent test-self vlib') + exec('VJOBS=1 v -silent test-self vlib') } else { vjobs := os.getenv_opt('VJOBS') or { '1' } - exec('VJOBS=${vjobs} v -d self_ignore_v2 -progress test-self vlib') + exec('VJOBS=${vjobs} v -progress test-self vlib') } } diff --git a/cmd/tools/vtest-self.v b/cmd/tools/vtest-self.v index 0e2ca31ea..1c7aa39b1 100644 --- a/cmd/tools/vtest-self.v +++ b/cmd/tools/vtest-self.v @@ -385,10 +385,10 @@ fn main() { mut tsession := testing.new_test_session(vargs.join(' '), true) tsession.exec_mode = .compile_and_run tsession.files << all_test_files.filter(!it.contains('testdata' + os.path_separator)) - $if self_ignore_v2 ? { - v2_dir_fragment := '${os.path_separator}vlib${os.path_separator}v2${os.path_separator}' - tsession.skip_files << tsession.files.filter(it.contains(v2_dir_fragment)) - } + // v2 has its own driver at `cmd/v2/test_all.sh` and is still under heavy + // development, so its tests are excluded from `v test-self`. + v2_dir_fragment := '${os.path_separator}vlib${os.path_separator}v2${os.path_separator}' + tsession.skip_files << tsession.files.filter(it.contains(v2_dir_fragment)) if cfg.werror { tsession.custom_defines << 'self_werror' } -- 2.39.5