summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-01-31 11:31:57 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2021-02-10 16:50:09 -0800
commit1a8963b0f4c11c4b7ddd347e6cd95cdc68ddcbe0 (patch)
tree52dc94d41f5651e04a10cb47d3b745a05e3f17da /bin
parent0007ed72c3a98ffaea7057dbb4f3ce87694e79a4 (diff)
downloadspack-1a8963b0f4c11c4b7ddd347e6cd95cdc68ddcbe0.tar.gz
spack-1a8963b0f4c11c4b7ddd347e6cd95cdc68ddcbe0.tar.bz2
spack-1a8963b0f4c11c4b7ddd347e6cd95cdc68ddcbe0.tar.xz
spack-1a8963b0f4c11c4b7ddd347e6cd95cdc68ddcbe0.zip
repo: generalize "swap" context manager to also accept paths
The method is now called "use_repositories" and makes it clear in the docstring that it accepts as arguments either Repo objects or paths. Since there was some duplication between this contextmanager and "use_repo" in the testing framework, remove the latter and use spack.repo.use_repositories across the entire code base. Make a few adjustment to MockPackageMultiRepo, since it was stating in the docstring that it was supposed to mock spack.repo.Repo and was instead mocking spack.repo.RepoPath.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions