summaryrefslogtreecommitdiff
path: root/lib/spack/spack/test/spec_syntax.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/test/spec_syntax.py')
-rw-r--r--lib/spack/spack/test/spec_syntax.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/spack/spack/test/spec_syntax.py b/lib/spack/spack/test/spec_syntax.py
index 48e55254f4..3971e02d48 100644
--- a/lib/spack/spack/test/spec_syntax.py
+++ b/lib/spack/spack/test/spec_syntax.py
@@ -499,7 +499,7 @@ class TestSpecSyntax(object):
specfile = tmpdir.join('libdwarf.yaml')
with specfile.open('w') as f:
- f.write(s.to_yaml(hash=ht.build_hash))
+ f.write(s.to_yaml(hash=ht.dag_hash))
# Check an absolute path to spec.yaml by itself:
# "spack spec /path/to/libdwarf.yaml"
@@ -522,7 +522,7 @@ class TestSpecSyntax(object):
# write the file to the current directory to make sure it exists,
# and that we still do not parse the spec as a file.
with specfile.open('w') as f:
- f.write(s.to_yaml(hash=ht.build_hash))
+ f.write(s.to_yaml(hash=ht.dag_hash))
# Check the spec `libelf.yaml` in the working directory, which
# should evaluate to a spec called `yaml` in the `libelf`
@@ -562,7 +562,7 @@ class TestSpecSyntax(object):
specfile = tmpdir.join('libelf.yaml')
with specfile.open('w') as f:
- f.write(s['libelf'].to_yaml(hash=ht.build_hash))
+ f.write(s['libelf'].to_yaml(hash=ht.dag_hash))
# Make sure we can use yaml path as dependency, e.g.:
# "spack spec libdwarf ^ /path/to/libelf.yaml"
@@ -577,7 +577,7 @@ class TestSpecSyntax(object):
specfile = tmpdir.join('libdwarf.yaml')
with specfile.open('w') as f:
- f.write(s.to_yaml(hash=ht.build_hash))
+ f.write(s.to_yaml(hash=ht.dag_hash))
file_name = specfile.basename
parent_dir = os.path.basename(specfile.dirname)
@@ -612,7 +612,7 @@ class TestSpecSyntax(object):
specfile = tmpdir.mkdir('subdir').join('libdwarf.yaml')
with specfile.open('w') as f:
- f.write(s.to_yaml(hash=ht.build_hash))
+ f.write(s.to_yaml(hash=ht.dag_hash))
file_name = specfile.basename
@@ -632,7 +632,7 @@ class TestSpecSyntax(object):
specfile = tmpdir.join('libelf.yaml')
with specfile.open('w') as f:
- f.write(s['libelf'].to_yaml(hash=ht.build_hash))
+ f.write(s['libelf'].to_yaml(hash=ht.dag_hash))
file_name = specfile.basename
parent_dir = os.path.basename(specfile.dirname)
@@ -691,7 +691,7 @@ class TestSpecSyntax(object):
specfile = tmpdir.join('a.yaml')
with specfile.open('w') as f:
- f.write(s.to_yaml(hash=ht.build_hash))
+ f.write(s.to_yaml(hash=ht.dag_hash))
with pytest.raises(RedundantSpecError):
# Trying to change a variant on a concrete spec is an error