Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly separate test-suite rpmdb reset from test initialization
Many of our tests require RPMTEST_INIT to create a writable snapshot, but especially after c17cc69, relatively few require initializing or resetting the rpmdb in the image. Separate the two and explicitly call RPMDB_RESET (renamed from RPMDB_INIT for a clean break) where it is actually needed. The common pattern that emerges is: build several packages at once and then do various things with it. Each of these RPMDB_RESET uses is actually somewhat problematic because whenever it's required there's a chance that previous tests could affect the results. Can't help that just now, but at least we've identified the issue. Besides making the needs and usages clearer, this introduces a nice fat speed boost for the test-suite - on my laptop, from 2m 50s to 2m 20s.
- Loading branch information