Skip to content

Commit b0cf6a5

Browse files
committed
ci: skip v3 in test-self
1 parent ec37182 commit b0cf6a5

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

cmd/tools/vtest-self.v

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ mut:
2323

2424
const vroot = os.dir(os.real_path(os.getenv_opt('VEXE') or { @VEXE }))
2525

26+
const temporarily_disabled_self_test_vlib_dirs = ['v2_toberemoved', 'v3']
27+
2628
const essential_list = [
2729
'cmd/tools/vvet/vet_test.v',
2830
'cmd/tools/vdoc/document/doc_test.v',
@@ -388,10 +390,12 @@ fn main() {
388390
mut tsession := testing.new_test_session(vargs.join(' '), true)
389391
tsession.exec_mode = .compile_and_run
390392
tsession.files << all_test_files.filter(!it.contains('testdata' + os.path_separator))
391-
// v2 has its own driver at `cmd/v2/test_all.vsh` and is still under heavy
392-
// development, so its tests are excluded from `v test-self`.
393-
v2_dir_fragment := '${os.path_separator}vlib${os.path_separator}v2_toberemoved${os.path_separator}'
394-
tsession.skip_files << tsession.files.filter(it.contains(v2_dir_fragment))
393+
// v2 and v3 have their own drivers and are still under heavy development,
394+
// so their tests are excluded from `v test-self`.
395+
for test_dir in temporarily_disabled_self_test_vlib_dirs {
396+
dir_fragment := '${os.path_separator}vlib${os.path_separator}${test_dir}${os.path_separator}'
397+
tsession.skip_files << tsession.files.filter(it.contains(dir_fragment))
398+
}
395399
if cfg.werror {
396400
tsession.custom_defines << 'self_werror'
397401
}

0 commit comments

Comments
 (0)