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.
This commit is contained in:
parent
b4682c8ca3
commit
6d2ec9baf7
@ -35,8 +35,8 @@
|
||||
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'
|
||||
|
Loading…
Reference in New Issue
Block a user