summaryrefslogtreecommitdiffstats
path: root/util/tests/sym_versions/test_glibc.py
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/tests/sym_versions/test_glibc.py
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/tests/sym_versions/test_glibc.py')
-rw-r--r--util/tests/sym_versions/test_glibc.py56
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 16ba81a4bde..c76359c54ce 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)