diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/tests/sym_versions/test_glibc.py | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/tests/sym_versions/test_glibc.py')
-rw-r--r-- | util/tests/sym_versions/test_glibc.py | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/util/tests/sym_versions/test_glibc.py b/util/tests/sym_versions/test_glibc.py index c76359c54c..16ba81a4bd 100644 --- a/util/tests/sym_versions/test_glibc.py +++ b/util/tests/sym_versions/test_glibc.py @@ -1,29 +1,29 @@ -import os -import functools - -import yatest.common as yc -import library.python.resource as lpr - - -def construct_path(p): - parts = p.split('/') - - return p + '/' + '-'.join(parts[-3:]) - - -def iter_binaries(): - ok = False - - for l in lpr.find('/test_binaries').split('\n'): - if '# start' in l: - ok = True - else: - if '# end' in l: - ok = False - - if ok: - yield construct_path(l.strip()) - - -for p in iter_binaries(): +import os +import functools + +import yatest.common as yc +import library.python.resource as lpr + + +def construct_path(p): + parts = p.split('/') + + return p + '/' + '-'.join(parts[-3:]) + + +def iter_binaries(): + ok = False + + for l in lpr.find('/test_binaries').split('\n'): + if '# start' in l: + ok = True + else: + if '# end' in l: + ok = False + + if ok: + yield construct_path(l.strip()) + + +for p in iter_binaries(): globals()['test_' + os.path.basename(p).replace('-', '_')] = functools.partial(yc.process.check_glibc_version, p) |