diff options
Diffstat (limited to 'tests/crash.rs')
| -rw-r--r-- | tests/crash.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/crash.rs b/tests/crash.rs index 66e6043..ca58a04 100644 --- a/tests/crash.rs +++ b/tests/crash.rs @@ -46,7 +46,7 @@ fn a_process_killed_mid_step_resumes_from_its_checkpoints_with_no_duplicate_work let (mut env, _fx) = env_with_fixture("plain-make"); let id = queued(&env, "plain-make"); // The child will be murdered the moment it invokes makechrootpkg. - env.cfg.shim_kill_parent = Some("makechrootpkg".into()); + env.cfg.hooks.shim_kill_parent = Some("makechrootpkg".into()); env.cfg.save().unwrap(); let out = run_cli(&env, &["run", &id]); @@ -89,12 +89,12 @@ fn a_process_killed_mid_step_resumes_from_its_checkpoints_with_no_duplicate_work // Resume. The completed steps are not repeated; only the interrupted one and // what follows run. - env.cfg.shim_kill_parent = None; + env.cfg.hooks.shim_kill_parent = None; env.cfg.save().unwrap(); let out = run_cli(&env, &["run", &id]); assert!(out.status.success(), "resume failed: {}", String::from_utf8_lossy(&out.stderr)); - let shim = env.cfg.shim_dir.clone().unwrap(); + let shim = env.cfg.hooks.shim_dir.clone().unwrap(); assert_eq!( aur_build::shims::called_with(&shim, "mkarchroot", ""), 1, @@ -126,7 +126,7 @@ fn a_cancelled_build_stops_at_a_step_boundary_and_publishes_nothing() { assert!(matches!(out, pipeline::Outcome::Cancelled), "{out:?}"); assert_eq!(builds::get(&env.db, &id).unwrap().unwrap().state, BuildState::Cancelled); // Nothing ran, so nothing to undo. - let shim = env.cfg.shim_dir.clone().unwrap(); + let shim = env.cfg.hooks.shim_dir.clone().unwrap(); assert_eq!(aur_build::shims::called_with(&shim, "repo-add", ""), 0); assert!(db::accepted_release(&env.db, "plain-make").unwrap().is_none()); // A cancelled build is not a failure and is not retried. |
