diff options
author | zaverden <zaverden@yandex-team.com> | 2025-06-04 08:44:55 +0300 |
---|---|---|
committer | zaverden <zaverden@yandex-team.com> | 2025-06-04 09:01:48 +0300 |
commit | e759a9f2b1e8fcabfde97cd8085e985b3988aef3 (patch) | |
tree | 8a1d599dde765422cdf5f0123e9227f6bedcc874 | |
parent | 4e19d625f6ee3bfd94071094f06eefc0546a6d03 (diff) | |
download | ydb-e759a9f2b1e8fcabfde97cd8085e985b3988aef3.tar.gz |
fix(conf): do not allow `.` in TS_*_TEST_FOR
commit_hash:3d7ff2376332341b9fdcb95341a6d15d9c358878
-rw-r--r-- | build/plugins/nots.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/plugins/nots.py b/build/plugins/nots.py index 6a96b796ee0..6b1c852b53b 100644 --- a/build/plugins/nots.py +++ b/build/plugins/nots.py @@ -947,7 +947,10 @@ def on_ts_test_for_configure( # noinspection PyUnusedLocal @_with_report_configure_error def on_validate_ts_test_for_args(unit: NotsUnitType, for_mod: str, root: str) -> None: - # FBP-1085 + if for_mod == "." or for_mod == "./": + ymake.report_configure_error(f"Tests should be for parent module but got path '{for_mod}'") + return + is_arc_root = root == "${ARCADIA_ROOT}" is_rel_for_mod = for_mod.startswith(".") |