summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortekireeva <[email protected]>2023-06-14 10:37:06 +0300
committertekireeva <[email protected]>2023-06-14 10:37:06 +0300
commit0b348476dc902c9b6ee3451a0cab9ed95a09ebf2 (patch)
tree65d22a6912e96dededd6f12b15da3dd79fee4296
parentb6e8ee8d98a160192326cceb21f562e2bc0fd3c9 (diff)
Remove default implicit data to module dir from add_ytest
Мы добавляем неявную дату на модульную директорию в `ADD_YTEST` только для "unittest.py", "gunittest", "g_benchmark", "go.test", "boost.test"
-rw-r--r--build/plugins/ytest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py
index 79db740ca03..c5fc0ec5be2 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(