tests: ignore `testdata` folders in `v test .` too

pull/10336/head
Delyan Angelov 2021-06-02 21:50:31 +03:00
parent bf623e191f
commit 0254a1ac76
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ pub fn should_test_dir(path string, backend string) ([]string, []string) { // re
for file in files {
p := path + local_path_separator + file
if os.is_dir(p) && !os.is_link(p) {
if file == 'testdata' {
continue
}
ret_files, ret_skip_files := should_test_dir(p, backend)
res_files << ret_files
skip_files << ret_skip_files