diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-08-14 12:33:04 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-08-14 13:40:56 +0300 |
commit | 4da28f7f97b6c1ae300df33b4e515e64b07a0323 (patch) | |
tree | daf14fa87a91ad0b2cbb4b94d0778f356c627317 /library/python | |
parent | 7baca6d1e56ee6ddfa2f387d8b20921c0285b5a3 (diff) | |
download | ydb-4da28f7f97b6c1ae300df33b4e515e64b07a0323.tar.gz |
Enable recipe to run with test context options in the command line
It allows to start recipes outside ya make without creating a context file
Diffstat (limited to 'library/python')
-rw-r--r-- | library/python/testing/recipe/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/python/testing/recipe/__init__.py b/library/python/testing/recipe/__init__.py index 5f48628ad3..483fe6a739 100644 --- a/library/python/testing/recipe/__init__.py +++ b/library/python/testing/recipe/__init__.py @@ -46,6 +46,9 @@ def get_options(): parser.add_argument("--pdb", action="store_true", dest="pdb", default=False, help="run pdb on error") parser.add_argument("--sanitizer-extra-checks", dest="sanitizer_extra_checks", action="store_true", default=False, help="enables extra checks for tests built with sanitizers") parser.add_argument("--collect-cores", dest="collect_cores", action="store_true", default=False, help="allows core dump file recovering during test") + parser.add_argument("--build-root", type=str, dest="build_root", default=None, help="Build root directory") + parser.add_argument("--source-root", type=str, dest="source_root", default=None, help="Source root directory") + parser.add_argument("--output-dir", type=str, dest="output_dir", default=None, help="Output directory") args, opts = parser.parse_known_args() @@ -56,7 +59,7 @@ def get_options(): "test_stderr": args.test_stderr, } - ya = Ya(context=context) + ya = Ya(context=context, build_root=args.build_root, source_root=args.source_root, output_dir=args.output_dir) ya._data_root = "" # XXX remove |