aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsharpeye <sharpeye@yandex-team.ru>2022-03-09 15:56:30 +0300
committersharpeye <sharpeye@yandex-team.ru>2022-03-09 15:56:30 +0300
commitb55ac3f9ace91abc4ab29c3a6ce56542feea7988 (patch)
treed791e9072eb74ef10ae74870df756a3251745961
parent34f4367a925410be3b114cfbd658518f0942ed55 (diff)
downloadydb-b55ac3f9ace91abc4ab29c3a6ce56542feea7988.tar.gz
[harness] NBS-3062: forward custom core pattern to yatest.process
ref:e8119ec4c062add07080f1ed4f0d89806da3ac25
-rw-r--r--ydb/tests/library/harness/daemon.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ydb/tests/library/harness/daemon.py b/ydb/tests/library/harness/daemon.py
index edabe07262..c34c7ce927 100644
--- a/ydb/tests/library/harness/daemon.py
+++ b/ydb/tests/library/harness/daemon.py
@@ -55,13 +55,16 @@ class SeveralDaemonErrors(RuntimeError):
class Daemon(object):
- def __init__(self, command, cwd, timeout, stdin_file=None, stdout_file=None, stderr_file=None, stderr_on_error_lines=0):
+ def __init__(self, command, cwd, timeout, stdin_file=None, stdout_file=None,
+ stderr_file=None, stderr_on_error_lines=0, core_pattern=None):
+
self.__cwd = cwd
self.__timeout = timeout
self.__command = tuple(command)
self.__stderr_on_error_lines = stderr_on_error_lines
self.__daemon = None
self.__killed = False
+ self.__core_pattern = core_pattern
self.logger = logger.getChild(self.__class__.__name__)
if stdout_file is None:
self.__stdout_file = tempfile.NamedTemporaryFile(dir=self.__cwd, prefix="stdout_", delete=False)
@@ -104,7 +107,8 @@ class Daemon(object):
stdin=self.__stdin_file,
stdout=self.__stdout_file,
stderr=stderr_stream,
- wait=False
+ wait=False,
+ core_pattern=self.__core_pattern
)
wait_for(self.is_alive, self.__timeout)