forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unit-tests: install.py (spack#47007)
Signed-off-by: Massimiliano Culpo <[email protected]>
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,21 +353,21 @@ def test_install_prefix_collision_fails(config, mock_fetch, mock_packages, tmpdi | |
Test that different specs with coinciding install prefixes will fail | ||
to install. | ||
""" | ||
projections = {"projections": {"all": "all-specs-project-to-this-prefix"}} | ||
projections = {"projections": {"all": "one-prefix-per-package-{name}"}} | ||
with spack.store.use_store(str(tmpdir), extra_data=projections): | ||
with spack.config.override("config:checksum", False): | ||
pkg_a = Spec("[email protected]").concretized().package | ||
pkg_b = Spec("[email protected]").concretized().package | ||
PackageInstaller([pkg_a], explicit=True).install() | ||
PackageInstaller([pkg_a], explicit=True, fake=True).install() | ||
|
||
with pytest.raises(InstallError, match="Install prefix collision"): | ||
PackageInstaller([pkg_b], explicit=True).install() | ||
PackageInstaller([pkg_b], explicit=True, fake=True).install() | ||
|
||
|
||
def test_store(install_mockery, mock_fetch): | ||
spec = Spec("cmake-client").concretized() | ||
pkg = spec.package | ||
PackageInstaller([pkg], explicit=True).install() | ||
PackageInstaller([pkg], fake=True, explicit=True).install() | ||
|
||
|
||
@pytest.mark.disable_clean_stage_check | ||
|