@@ -1416,6 +1416,7 @@ check_goal_solution (RpmOstreeContext *self, GPtrArray *removed_pkgnames,
14161416 GHashTable * replaced_pkgnames , GError * * error )
14171417{
14181418 HyGoal goal = dnf_context_get_goal (self -> dnfctx );
1419+ CXX_TRY (rpmostreecxx ::failpoint ("core::check-goal-solution" ), error );
14191420
14201421 /* check that we're not removing anything we didn't expect */
14211422 {
@@ -4057,6 +4058,8 @@ rpmostree_context_assemble (RpmOstreeContext *self, GCancellable *cancellable, G
40574058 return FALSE;
40584059 int tmprootfs_dfd = self -> tmprootfs_dfd ; /* Alias to avoid bigger diff */
40594060
4061+ CXX_TRY (rpmostreecxx ::failpoint ("core::assemble" ), error );
4062+
40604063 /* In e.g. removing a package we walk librpm which doesn't have canonical
40614064 * /usr, so we need to build up a mapping.
40624065 */
@@ -4503,6 +4506,8 @@ rpmostree_context_assemble (RpmOstreeContext *self, GCancellable *cancellable, G
45034506gboolean
45044507rpmostree_context_assemble_end (RpmOstreeContext * self , GCancellable * cancellable , GError * * error )
45054508{
4509+ CXX_TRY (rpmostreecxx ::failpoint ("core::assemble-end" ), error );
4510+
45064511 if (!ensure_tmprootfs_dfd (self , error ))
45074512 return FALSE;
45084513 if (self -> treefile_rs -> get_cliwrap ())
@@ -4534,6 +4539,7 @@ rpmostree_context_commit (RpmOstreeContext *self, const char *parent,
45344539 g_autofree char * ret_commit_checksum = NULL ;
45354540
45364541 auto task = rpmostreecxx ::progress_begin_task ("Writing OSTree commit" );
4542+ CXX_TRY (rpmostreecxx ::failpoint ("core::commit" ), error );
45374543
45384544 g_auto (RpmOstreeRepoAutoTransaction ) txn = {
45394545 0 ,
0 commit comments