summaryrefslogtreecommitdiffstats
path: root/library/python/testing/yatest_common/yatest/common/process.py
diff options
context:
space:
mode:
authordeshevoy <[email protected]>2022-02-10 16:46:57 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:57 +0300
commit28148f76dbfcc644d96427d41c92f36cbf2fdc6e (patch)
treeb83306b6e37edeea782e9eed673d89286c4fef35 /library/python/testing/yatest_common/yatest/common/process.py
parente988f30484abe5fdeedcc7a5d3c226c01a21800c (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/python/testing/yatest_common/yatest/common/process.py')
-rw-r--r--library/python/testing/yatest_common/yatest/common/process.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/process.py b/library/python/testing/yatest_common/yatest/common/process.py
index d4618d59fb4..a8bcc21f518 100644
--- a/library/python/testing/yatest_common/yatest/common/process.py
+++ b/library/python/testing/yatest_common/yatest/common/process.py
@@ -9,7 +9,7 @@ import logging
import tempfile
import subprocess
import errno
-import distutils.version
+import distutils.version
import six
@@ -27,7 +27,7 @@ from . import environment
MAX_OUT_LEN = 1000 * 1000 # 1 mb
MAX_MESSAGE_LEN = 1500
SANITIZER_ERROR_PATTERN = br": ([A-Z][\w]+Sanitizer)"
-GLIBC_PATTERN = re.compile(r"\S+@GLIBC_([0-9.]+)")
+GLIBC_PATTERN = re.compile(r"\S+@GLIBC_([0-9.]+)")
yatest_logger = logging.getLogger("ya.test")
@@ -696,13 +696,13 @@ def _run_readelf(binary_path):
def check_glibc_version(binary_path):
- lucid_glibc_version = distutils.version.LooseVersion("2.11")
-
+ lucid_glibc_version = distutils.version.LooseVersion("2.11")
+
for l in _run_readelf(binary_path).split('\n'):
- match = GLIBC_PATTERN.search(l)
- if not match:
- continue
- assert distutils.version.LooseVersion(match.group(1)) <= lucid_glibc_version, match.group(0)
+ match = GLIBC_PATTERN.search(l)
+ if not match:
+ continue
+ assert distutils.version.LooseVersion(match.group(1)) <= lucid_glibc_version, match.group(0)
def backtrace_to_html(bt_filename, output):