aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/macros_with_error.py
diff options
context:
space:
mode:
authormonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
committermonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /build/plugins/macros_with_error.py
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
downloadydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz
fix ya.make
Diffstat (limited to 'build/plugins/macros_with_error.py')
-rw-r--r--build/plugins/macros_with_error.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/build/plugins/macros_with_error.py b/build/plugins/macros_with_error.py
deleted file mode 100644
index e82fb56d2c..0000000000
--- a/build/plugins/macros_with_error.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import sys
-
-import _common
-
-import ymake
-
-
-def onmacros_with_error(unit, *args):
- print >> sys.stderr, 'This macros will fail'
- raise Exception('Expected fail in MACROS_WITH_ERROR')
-
-
-def onrestrict_path(unit, *args):
- if args:
- if 'MSG' in args:
- pos = args.index('MSG')
- paths, msg = args[:pos], args[pos + 1:]
- msg = ' '.join(msg)
- else:
- paths, msg = args, 'forbidden'
- if not _common.strip_roots(unit.path()).startswith(paths):
- error_msg = "Path '[[imp]]{}[[rst]]' is restricted - [[bad]]{}[[rst]]. Valid path prefixes are: [[unimp]]{}[[rst]]".format(unit.path(), msg, ', '.join(paths))
- ymake.report_configure_error(error_msg)
-
-def onassert(unit, *args):
- val = unit.get(args[0])
- if val and val.lower() == "no":
- msg = ' '.join(args[1:])
- ymake.report_configure_error(msg)