diff options
author | ngc224 <ngc224@yandex-team.ru> | 2022-02-10 16:46:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:20 +0300 |
commit | 50152f7fd45140de323b88e009d3daa4209b3f07 (patch) | |
tree | 2683706dd2f4f75d50ad7fa0df0bdfa59841c42e /build/plugins | |
parent | c73494e681a4e497ae191ada07a55a6bf55885ff (diff) | |
download | ydb-50152f7fd45140de323b88e009d3daa4209b3f07.tar.gz |
Restoring authorship annotation for <ngc224@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins')
-rw-r--r-- | build/plugins/ytest.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py index 8970837f0f..61ac566d27 100644 --- a/build/plugins/ytest.py +++ b/build/plugins/ytest.py @@ -728,20 +728,20 @@ def onadd_pytest_bin(unit, *args): if unit.get("TIDY") == "yes": # graph changed for clang_tidy tests return - flat, kws = _common.sort_by_keywords({'RUNNER_BIN': 1}, args) - if flat: - ymake.report_configure_error( - 'Unknown arguments found while processing add_pytest_bin macro: {!r}' - .format(flat) - ) - - runner_bin = kws.get('RUNNER_BIN', [None])[0] + flat, kws = _common.sort_by_keywords({'RUNNER_BIN': 1}, args) + if flat: + ymake.report_configure_error( + 'Unknown arguments found while processing add_pytest_bin macro: {!r}' + .format(flat) + ) + + runner_bin = kws.get('RUNNER_BIN', [None])[0] test_type = 'py3test.bin' if (unit.get("PYTHON3") == 'yes') else "pytest.bin" add_test_to_dart(unit, test_type, runner_bin=runner_bin) + - -def add_test_to_dart(unit, test_type, binary_path=None, runner_bin=None): +def add_test_to_dart(unit, test_type, binary_path=None, runner_bin=None): if unit.get("TIDY") == "yes": # graph changed for clang_tidy tests return @@ -1016,7 +1016,7 @@ def onsetup_pytest_bin(unit, *args): use_arcadia_python = unit.get('USE_ARCADIA_PYTHON') == "yes" if use_arcadia_python: unit.onresource(['-', 'PY_MAIN={}'.format("library.python.pytest.main:main")]) # XXX - unit.onadd_pytest_bin(list(args)) + unit.onadd_pytest_bin(list(args)) else: unit.onno_platform() unit.onadd_pytest_script(["PY_TEST"]) |