diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2019-07-20 19:18:50 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-07-20 10:18:50 -0700 |
commit | a2cb26f5207fa907860ee350d631afdfb4580bbd (patch) | |
tree | 6f98e2352690a0b359a1a69f1e2e0fd9329f823d /.dockerignore | |
parent | 930011c12487a7bf9d6809a654be4c94e98d3702 (diff) | |
download | spack-a2cb26f5207fa907860ee350d631afdfb4580bbd.tar.gz spack-a2cb26f5207fa907860ee350d631afdfb4580bbd.tar.bz2 spack-a2cb26f5207fa907860ee350d631afdfb4580bbd.tar.xz spack-a2cb26f5207fa907860ee350d631afdfb4580bbd.zip |
tests: speed up tests that rely on the database fixture (#12031)
The database and mutable_database fixtures were installing and uninstalling the same specs multiple times to ensure the database for tests has the correct state.
This commit optimizes the procedure by caching the state in an external directory, and copying it in instead of going through the installation or uninstallation again.
The database fixture is meant not to be modified by tests. This commit enforces this invariant by making the database read-only before starting the test.
* Added missing db markers to tests
* Added test for uninstall_by_spec
* `database` fixture now returns a read-only database
* Tests that modify the DB now use `mutable_database` fixture
Diffstat (limited to '.dockerignore')
0 files changed, 0 insertions, 0 deletions