diff options
author | tekireeva <tekireeva@yandex-team.com> | 2023-06-14 10:37:06 +0300 |
---|---|---|
committer | tekireeva <tekireeva@yandex-team.com> | 2023-06-14 10:37:06 +0300 |
commit | 0b348476dc902c9b6ee3451a0cab9ed95a09ebf2 (patch) | |
tree | 65d22a6912e96dededd6f12b15da3dd79fee4296 /build/plugins/ytest.py | |
parent | b6e8ee8d98a160192326cceb21f562e2bc0fd3c9 (diff) | |
download | ydb-0b348476dc902c9b6ee3451a0cab9ed95a09ebf2.tar.gz |
Remove default implicit data to module dir from add_ytest
Мы добавляем неявную дату на модульную директорию в `ADD_YTEST` только для "unittest.py", "gunittest", "g_benchmark", "go.test", "boost.test"
Diffstat (limited to 'build/plugins/ytest.py')
-rw-r--r-- | build/plugins/ytest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py index 79db740ca0..c5fc0ec5be 100644 --- a/build/plugins/ytest.py +++ b/build/plugins/ytest.py @@ -435,7 +435,9 @@ def onadd_ytest(unit, *args): "FORK_TESTS": 0, } flat_args, spec_args = _common.sort_by_keywords(keywords, args) - if unit.get('ADD_SRCDIR_TO_TEST_DATA') == "yes": + + is_implicit_data_needed = flat_args[1] in ("unittest.py", "gunittest", "g_benchmark", "go.test", "boost.test") + if is_implicit_data_needed and unit.get('ADD_SRCDIR_TO_TEST_DATA') == "yes": unit.ondata_files(_common.get_norm_unit_path(unit)) test_data = sorted( |