-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate the need for explicit RPMTEST_INIT
Add a new RPMTEST_SETUP_RW macro for setting up a test with a writable snapshot, use everywhere as needed and eliminate the now unnecessary RPMTEST_INIT and thus a whole lot of boilerplate across the test-suite. Many tests were using RPMTEST_INIT unnecessarily, and there still are many tests that could actually use a read-only environment but that's another story. Of particular note is RPMTEST_SKIP_IF which becomes necessary here: if AT_SKIP_IF decides to skip a test, it exits without no chance for cleanup, and if this happens in a test using RPMTEST_SETUP_RW, we'd leave a mount behind and get warnings about busy mountpoints in the test-suite.
- Loading branch information
Showing
26 changed files
with
397 additions
and
851 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
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
Oops, something went wrong.