tests: check rpath presence not equality (#17216)

This commit is contained in:
Tamara Dahlgren 2020-06-23 15:17:35 -07:00 committed by GitHub
parent 0b57567824
commit e74c8e71cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -337,7 +337,8 @@ def test_make_elf_binaries_relative(hello_world, copy_binary, tmpdir):
[str(new_binary)], [str(orig_binary)], str(orig_binary.dirpath()) [str(new_binary)], [str(orig_binary)], str(orig_binary.dirpath())
) )
assert rpaths_for(new_binary) == '$ORIGIN/lib:$ORIGIN/lib64:/opt/local/lib' # Some compilers add rpaths so ensure changes included in final result
assert '$ORIGIN/lib:$ORIGIN/lib64:/opt/local/lib' in rpaths_for(new_binary)
def test_raise_if_not_relocatable(monkeypatch): def test_raise_if_not_relocatable(monkeypatch):