Skip to content

Commit

Permalink
Fix test_shlib_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
danigm committed Aug 14, 2024
1 parent 2e4b559 commit 0e16871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Binary file added test/files/libtest.so.1.5.0
Binary file not shown.
13 changes: 4 additions & 9 deletions test/test_shlib_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@ def slpcheck():


@pytest.mark.parametrize('package', [get_tested_mock_package(
name='libtest',
name='libtest1',
files={
'/usr/lib64/libtest.so.1x': {
'metadata': {
'mode': 0o755,
'magic': 'ELF 64-bit LSB shared object, x86-64, version 1'},
'content': ''
}
'/usr/lib64/libtest.so.1.5.0': {'content-path': 'files/libtest.so.1.5.0'}
},
header={
'requires': [
Expand All @@ -48,8 +43,8 @@ def test_shlib_policy_wrong_name(package, slpcheck):
files={
'/usr/lib64/hello': {'is_dir': True},
'/usr/lib64/hello/libhello2.so': {},
'/usr/lib64/libhello.so': {},
'/usr/lib64/libhello2.so': {}
'/usr/lib64/libhello.so': {'content-path': 'files/libhello.so'},
'/usr/lib64/libhello2.so': {'content-path': 'files/libhello2.so'}
},
header={
'requires': [
Expand Down

0 comments on commit 0e16871

Please sign in to comment.