aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvitalyisaev <vitalyisaev@ydb.tech>2023-11-29 11:32:17 +0300
committervitalyisaev <vitalyisaev@ydb.tech>2023-11-29 12:08:33 +0300
commit0fa5e0119839fc7b88f2c50de41a7a32ead64bb8 (patch)
treeb0b16b9e93af230f130c2e648d37efeb2dc2ef94
parent0db14d1168517ecacab106e7abfe7af663020829 (diff)
downloadydb-0fa5e0119839fc7b88f2c50de41a7a32ead64bb8.tar.gz
Revert commit rXXXXXX,Decode bytes when reading sanitizer's stderr
-rw-r--r--library/python/testing/yatest_common/yatest/common/process.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/process.py b/library/python/testing/yatest_common/yatest/common/process.py
index 044208d4cf..2b6ae26c53 100644
--- a/library/python/testing/yatest_common/yatest/common/process.py
+++ b/library/python/testing/yatest_common/yatest/common/process.py
@@ -443,16 +443,12 @@ class _Execution(object):
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):
- std_err, failed = _try_convert_bytes_to_string(self._std_err)
- if failed:
- raise ValueError("failed to convert std err from bytes to string")
-
- match = re.search(SANITIZER_ERROR_PATTERN, std_err)
+ match = re.search(SANITIZER_ERROR_PATTERN, self._std_err)
if match:
yatest_logger.error(
"%s sanitizer found errors:\n\tstd_err:%s\n",
match.group(1),
- truncate(std_err, MAX_OUT_LEN),
+ truncate(self.std_err, MAX_OUT_LEN),
)
raise ExecutionError(self)
else: