diff options
Diffstat (limited to 'tests/invariants.rs')
| -rw-r--r-- | tests/invariants.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/invariants.rs b/tests/invariants.rs index b7bfc0d..8026a79 100644 --- a/tests/invariants.rs +++ b/tests/invariants.rs @@ -158,7 +158,7 @@ fn i5_resume_after_a_crash_repeats_no_completed_step() { pipeline::run(&env.cfg, &env.db, &id).unwrap(), pipeline::Outcome::Failed { .. } )); - let shim = env.cfg.shim_dir.clone().unwrap(); + let shim = env.cfg.hooks.shim_dir.clone().unwrap(); let builds_before = aur_build::shims::called_with(&shim, "makechrootpkg", ""); assert_eq!(builds_before, 2, "one build per attempted publish"); @@ -422,10 +422,10 @@ fn i9_a_build_cannot_smuggle_bytes_in_from_outside_its_own_staging_dir() { // Something a build must never get to publish: our own database file. let secret = env.cfg.db_path(); let store_before = dir_listing(&env.cfg.store_dir()); - env.cfg.shim_plant_link = Some(secret.display().to_string()); + env.cfg.hooks.shim_plant_link = Some(secret.display().to_string()); let out = pipeline::run(&env.cfg, &env.db, &id); - env.cfg.shim_plant_link = None; + env.cfg.hooks.shim_plant_link = None; let (step, err) = match out { Ok(pipeline::Outcome::Failed { step, error, .. }) => (step, error), other => panic!("a build that smuggled in a symlink must fail closed, got {other:?}"), |
