spec: support a test prefix
This is used in tests to test real packages without actually building and installing them.
This commit is contained in:
parent
be01b2d5f0
commit
dde93c01cf
@ -1374,8 +1374,13 @@ def cshort_spec(self):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def prefix(self):
|
def prefix(self):
|
||||||
|
if hasattr(self, 'test_prefix'):
|
||||||
|
return Prefix(self.test_prefix)
|
||||||
return Prefix(spack.store.layout.path_for_spec(self))
|
return Prefix(spack.store.layout.path_for_spec(self))
|
||||||
|
|
||||||
|
def _set_test_prefix(self, val):
|
||||||
|
self.test_prefix = val
|
||||||
|
|
||||||
def dag_hash(self, length=None):
|
def dag_hash(self, length=None):
|
||||||
"""Return a hash of the entire spec DAG, including connectivity."""
|
"""Return a hash of the entire spec DAG, including connectivity."""
|
||||||
if self._hash:
|
if self._hash:
|
||||||
|
Loading…
Reference in New Issue
Block a user