diff options
author | asatarin <asatarin@yandex-team.ru> | 2022-02-10 16:47:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:30 +0300 |
commit | ca04a556317a80ac802f38457a2292185282878b (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/python/testing/yatest_common | |
parent | 4ca29390ac54b7877174de542de47532c67453b5 (diff) | |
download | ydb-ca04a556317a80ac802f38457a2292185282878b.tar.gz |
Restoring authorship annotation for <asatarin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/python/testing/yatest_common')
3 files changed, 28 insertions, 28 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/network.py b/library/python/testing/yatest_common/yatest/common/network.py index ef33444dad..37bcb1b8e0 100644 --- a/library/python/testing/yatest_common/yatest/common/network.py +++ b/library/python/testing/yatest_common/yatest/common/network.py @@ -19,12 +19,12 @@ class PortManagerException(Exception): class PortManager(object): - """ - See documentation here + """ + See documentation here https://wiki.yandex-team.ru/yatool/test/#python-acquire-ports - """ - + """ + def __init__(self, sync_dir=None): self._sync_dir = sync_dir or os.environ.get('PORT_SYNC_PATH') if self._sync_dir: diff --git a/library/python/testing/yatest_common/yatest/common/process.py b/library/python/testing/yatest_common/yatest/common/process.py index d56eeb3f75..a8bcc21f51 100644 --- a/library/python/testing/yatest_common/yatest/common/process.py +++ b/library/python/testing/yatest_common/yatest/common/process.py @@ -356,7 +356,7 @@ class _Execution(object): finally: self._elapsed = time.time() - self._start self._save_outputs() - self.verify_no_coredumps() + self.verify_no_coredumps() self._finalise(check_exit_code) @@ -370,11 +370,11 @@ class _Execution(object): # Don't search for sanitize errors if stderr was redirected self.verify_sanitize_errors() - def verify_no_coredumps(self): - """ - Verify there is no coredump from this binary. If there is then report backtrace. - """ - if self.exit_code < 0 and self._collect_cores: + def verify_no_coredumps(self): + """ + Verify there is no coredump from this binary. If there is then report backtrace. + """ + if self.exit_code < 0 and self._collect_cores: if cores: try: self._recover_core() @@ -382,11 +382,11 @@ class _Execution(object): yatest_logger.exception("Exception while recovering core") else: yatest_logger.warning("Core dump file recovering is skipped: module cores isn't available") - + def verify_sanitize_errors(self): - """ - Verify there are no sanitizer (ASAN, MSAN, TSAN, etc) errors for this binary. If there are any report them. - """ + """ + Verify there are no sanitizer (ASAN, MSAN, TSAN, etc) errors for this binary. If there are any report them. + """ if self._std_err and self._check_sanitizer and runtime._get_ya_config().sanitizer_extra_checks: build_path = runtime.build_path() if self.command[0].startswith(build_path): diff --git a/library/python/testing/yatest_common/yatest/common/runtime.py b/library/python/testing/yatest_common/yatest/common/runtime.py index c827169f43..e55e193446 100644 --- a/library/python/testing/yatest_common/yatest/common/runtime.py +++ b/library/python/testing/yatest_common/yatest/common/runtime.py @@ -198,15 +198,15 @@ def get_param(key, default=None): return _get_ya_plugin_instance().get_param(key, default) -def get_param_dict_copy(): - """ - Return copy of dictionary with all parameters. Changes to this dictionary do *not* change parameters. - - :return: copy of dictionary with all parameters - """ - return _get_ya_plugin_instance().get_param_dict_copy() - - +def get_param_dict_copy(): + """ + Return copy of dictionary with all parameters. Changes to this dictionary do *not* change parameters. + + :return: copy of dictionary with all parameters + """ + return _get_ya_plugin_instance().get_param_dict_copy() + + @not_test def test_output_path(path=None): """ @@ -317,11 +317,11 @@ class Context(object): @property def sanitize(self): - """ - Detect if current test run is under sanitizer - - :return: one of `None`, 'address', 'memory', 'thread', 'undefined' - """ + """ + Detect if current test run is under sanitizer + + :return: one of `None`, 'address', 'memory', 'thread', 'undefined' + """ return _get_ya_plugin_instance().get_context("sanitize") @property |