From dbf67d912c0ce7d2a26a67626154f3e2bd17a19b Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 24 Nov 2021 11:17:23 +0100 Subject: Make patchelf test use the realpath (#27618) I think this test should be removed, but when it stays, it should at least follow the symlink, cause it fails for me if I let spack build patchelf and have a symlink in a view. --- lib/spack/spack/test/relocate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/test/relocate.py b/lib/spack/spack/test/relocate.py index 1e4b771fa6..912e1004b2 100644 --- a/lib/spack/spack/test/relocate.py +++ b/lib/spack/spack/test/relocate.py @@ -241,7 +241,7 @@ def test_file_is_relocatable(source_file, is_relocatable): @pytest.mark.requires_executables('patchelf', 'strings', 'file') def test_patchelf_is_relocatable(): - patchelf = spack.relocate._patchelf() + patchelf = os.path.realpath(spack.relocate._patchelf()) assert llnl.util.filesystem.is_exe(patchelf) assert spack.relocate.file_is_relocatable(patchelf) -- cgit v1.2.3-60-g2f50