aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/nots.py
diff options
context:
space:
mode:
authorzaverden <zaverden@yandex-team.com>2023-09-06 15:23:45 +0300
committerzaverden <zaverden@yandex-team.com>2023-09-06 15:56:10 +0300
commitca594624ee938ed5ba30ec19be26320a9e0f9395 (patch)
tree943326fdccd18f80e21ca878efd0935f10ec7381 /build/plugins/nots.py
parent18f12f33d1ce1a607a5e12d1d2091d065541159d (diff)
downloadydb-ca594624ee938ed5ba30ec19be26320a9e0f9395.tar.gz
feat(conf): add TS_FILES macro
Diffstat (limited to 'build/plugins/nots.py')
-rw-r--r--build/plugins/nots.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/plugins/nots.py b/build/plugins/nots.py
index 272124a814..0f7350c64b 100644
--- a/build/plugins/nots.py
+++ b/build/plugins/nots.py
@@ -515,3 +515,12 @@ def _add_ts_resources_to_test_record(unit, test_record):
if tool_resource_value:
test_record[tool_resource_label] = tool_resource_value
return test_record
+
+
+@_with_report_configure_error
+def on_ts_files(unit, *files):
+ all_cmds = unit.get("_TS_FILES_COPY_CMD")
+ new_cmds = ['$COPY_CMD ${{input:"{0}"}} ${{output:"{0}"}}'.format(f) for f in files]
+ if all_cmds:
+ new_cmds.insert(0, all_cmds)
+ unit.set(["_TS_FILES_COPY_CMD", " && ".join(new_cmds)])