diff --git a/ui_test/src/dependencies.rs b/ui_test/src/dependencies.rs index 8ec7090b96a..582641b97ae 100644 --- a/ui_test/src/dependencies.rs +++ b/ui_test/src/dependencies.rs @@ -5,7 +5,7 @@ process::Command, }; -use crate::Config; +use crate::{Config, OutputConflictHandling}; #[derive(Default, Debug)] pub struct Dependencies { @@ -40,6 +40,9 @@ pub fn build_dependencies(config: &Config) -> Result { let setup_command = |cmd: &mut Command| { cmd.envs(envs.iter().map(|(k, v)| (k, v))); cmd.arg("--manifest-path").arg(manifest_path); + if matches!(config.output_conflict_handling, OutputConflictHandling::Error) { + cmd.arg("--locked"); + } }; setup_command(&mut build);