Check if patchelf is executable, not binary, in case a site is wrapping it.
This commit is contained in:
Tamara Dahlgren 2020-01-13 13:00:14 -08:00 committed by Todd Gamblin
parent 5afc407faa
commit eb7a4e1029

View File

@ -65,7 +65,7 @@ def test_file_is_relocatable(source_file, is_relocatable):
)
def test_patchelf_is_relocatable():
patchelf = spack.relocate.get_patchelf()
assert spack.relocate.is_binary(patchelf)
assert llnl.util.filesystem.is_exe(patchelf)
assert spack.relocate.file_is_relocatable(patchelf)