repo: Add OSTREE_REPO_TEST_ERROR=invalid-cache env var
Add an invalid-cache test error flag to ensure that the code that checks for and recovers from a corrupted summary cache is hit. This helps make sure that the recovery path is actually used without resorting to G_MESSAGES_DEBUG. Closes: #1698 Approved by: cgwalters
This commit is contained in:
1 parent
1b5cb52da2
commit
4e6b13e8b6
4 files changed
+27
-3
No files matched your search
@@ -1187,6 +1187,7 @@ ostree_repo_init (OstreeRepo *self)
|
||||
static gsize gpgme_initialized;
|
||||
const GDebugKey test_error_keys[] = {
|
||||
{ "pre-commit", OSTREE_REPO_TEST_ERROR_PRE_COMMIT },
|
||||
{ "invalid-cache", OSTREE_REPO_TEST_ERROR_INVALID_CACHE },
|
||||
};
|
||||
|
||||
if (g_once_init_enter (&gpgme_initialized))
|
||||
|
||||
Reference in new issue
Block a user