fix failing tests
This commit is contained in:
parent
ae8386af16
commit
2241ad726d
@ -182,17 +182,17 @@ def test_dev_build_fails_no_version(mock_packages):
|
|||||||
|
|
||||||
def test_dev_build_can_parse_path_with_at_symbol(tmpdir, install_mockery):
|
def test_dev_build_can_parse_path_with_at_symbol(tmpdir, install_mockery):
|
||||||
special_char_dir = tmpdir.mkdir("tmp@place")
|
special_char_dir = tmpdir.mkdir("tmp@place")
|
||||||
spec = spack.spec.Spec("dev-build-test-install@0.0.0")
|
spec = spack.spec.Spec(f'dev-build-test-install@0.0.0 dev_path="{special_char_dir}"')
|
||||||
spec.concretize()
|
spec.concretize()
|
||||||
|
|
||||||
with special_char_dir.as_cwd():
|
with special_char_dir.as_cwd():
|
||||||
with open(spec.package.filename, "w", encoding="utf-8") as f:
|
with open(spec.package.filename, "w", encoding="utf-8") as f:
|
||||||
f.write(spec.package.original_string)
|
f.write(spec.package.original_string)
|
||||||
|
|
||||||
dev_build("dev-build-test-install@0.0.0")
|
dev_build("dev-build-test-install@0.0.0")
|
||||||
assert spec.package.filename in os.listdir(spec.prefix)
|
assert spec.package.filename in os.listdir(spec.prefix)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_dev_build_env(tmpdir, install_mockery, mutable_mock_env_path):
|
def test_dev_build_env(tmpdir, install_mockery, mutable_mock_env_path):
|
||||||
"""Test Spack does dev builds for packages in develop section of env."""
|
"""Test Spack does dev builds for packages in develop section of env."""
|
||||||
# setup dev-build-test-install package for dev build
|
# setup dev-build-test-install package for dev build
|
||||||
|
@ -3241,7 +3241,7 @@ def test_spec_unification(unify, mutable_config, mock_packages):
|
|||||||
|
|
||||||
|
|
||||||
def test_concretize_dev_path_with_at_symbol_in_env(tmpdir, mock_packages):
|
def test_concretize_dev_path_with_at_symbol_in_env(tmpdir, mock_packages):
|
||||||
spec_like = "zlib@2.0"
|
spec_like = "trivial-smoke-test@1.0"
|
||||||
spec = Spec(spec_like)
|
spec = Spec(spec_like)
|
||||||
add = SpackCommand("add")
|
add = SpackCommand("add")
|
||||||
develop = SpackCommand("develop")
|
develop = SpackCommand("develop")
|
||||||
|
Loading…
Reference in New Issue
Block a user