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 | b86334f8eb651237aceaa035bebb519893d6d077 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /build/plugins/ytest.py | |
parent | 50152f7fd45140de323b88e009d3daa4209b3f07 (diff) | |
download | ydb-b86334f8eb651237aceaa035bebb519893d6d077.tar.gz |
Restoring authorship annotation for <ngc224@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/plugins/ytest.py')
-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 61ac566d27..8970837f0f 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"]) |