summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-02-04 14:30:23 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2016-07-14 16:21:45 -0400
commit6d2ec9baf7e91cde471cc9b542c8056bb7c65250 (patch)
tree37181b516b83d428218f09a97ea4eef9eaf7b3af /lib
parentb4682c8ca3a1a7b5898c0298cdc3bf2089652779 (diff)
downloadspack-6d2ec9baf7e91cde471cc9b542c8056bb7c65250.tar.gz
spack-6d2ec9baf7e91cde471cc9b542c8056bb7c65250.tar.bz2
spack-6d2ec9baf7e91cde471cc9b542c8056bb7c65250.tar.xz
spack-6d2ec9baf7e91cde471cc9b542c8056bb7c65250.zip
test/stage: use os.path.realpath on the test paths
When var/spack/stage is a symlink, the tests fail since realpath is used on the resulting path, but not the original path, so the string compare fails. Smarter path testing might be a better option.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/stage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/test/stage.py b/lib/spack/spack/test/stage.py
index 6d8c3ac67c..d3e3bf1383 100644
--- a/lib/spack/spack/test/stage.py
+++ b/lib/spack/spack/test/stage.py
@@ -35,8 +35,8 @@ from llnl.util.filesystem import *
from spack.stage import Stage
from spack.util.executable import which
-test_files_dir = join_path(spack.stage_path, '.test')
-test_tmp_path = join_path(test_files_dir, 'tmp')
+test_files_dir = os.path.realpath(join_path(spack.stage_path, '.test'))
+test_tmp_path = os.path.realpath(join_path(test_files_dir, 'tmp'))
archive_dir = 'test-files'
archive_name = archive_dir + '.tar.gz'