summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-10-16 15:02:52 +0200
committerGitHub <noreply@github.com>2024-10-16 15:02:52 +0200
commitcbdc07248f517e5d8f8e56f5e59359794bda6757 (patch)
tree6ff092de0def8187ba67dc8bfc4f6986fe58068f /lib
parentdb6a2523d93f4ac20f704bc9741925968d452218 (diff)
downloadspack-cbdc07248f517e5d8f8e56f5e59359794bda6757.tar.gz
spack-cbdc07248f517e5d8f8e56f5e59359794bda6757.tar.bz2
spack-cbdc07248f517e5d8f8e56f5e59359794bda6757.tar.xz
spack-cbdc07248f517e5d8f8e56f5e59359794bda6757.zip
unit-tests: install.py (#47007)
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/test/install.py b/lib/spack/spack/test/install.py
index efaa7cc171..bcbe45bf3e 100644
--- a/lib/spack/spack/test/install.py
+++ b/lib/spack/spack/test/install.py
@@ -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("libelf@0.8.13").concretized().package
pkg_b = Spec("libelf@0.8.12").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