summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-11-24 11:17:23 +0100
committerGitHub <noreply@github.com>2021-11-24 11:17:23 +0100
commitdbf67d912c0ce7d2a26a67626154f3e2bd17a19b (patch)
tree5aa55874bc8b51e9eb9553d55c2ac080afc85a48 /lib
parent5c3dfacdc58b4cf6dbc3f71714220b8aa9d88e19 (diff)
downloadspack-dbf67d912c0ce7d2a26a67626154f3e2bd17a19b.tar.gz
spack-dbf67d912c0ce7d2a26a67626154f3e2bd17a19b.tar.bz2
spack-dbf67d912c0ce7d2a26a67626154f3e2bd17a19b.tar.xz
spack-dbf67d912c0ce7d2a26a67626154f3e2bd17a19b.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/relocate.py2
1 files changed, 1 insertions, 1 deletions
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)