Skip to content

Commit 30d1c68

Browse files
committed
Auto merge of rust-lang#2434 - RalfJung:ui-test-locked, r=oli-obk
ui_test: build dependencies in locked mode unless bless is enabled This should help ensure that tests are reproducible.
2 parents a591e9f + 5c52a76 commit 30d1c68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui_test/src/dependencies.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::{
55
process::Command,
66
};
77

8-
use crate::Config;
8+
use crate::{Config, OutputConflictHandling};
99

1010
#[derive(Default, Debug)]
1111
pub struct Dependencies {
@@ -40,6 +40,9 @@ pub fn build_dependencies(config: &Config) -> Result<Dependencies> {
4040
let setup_command = |cmd: &mut Command| {
4141
cmd.envs(envs.iter().map(|(k, v)| (k, v)));
4242
cmd.arg("--manifest-path").arg(manifest_path);
43+
if matches!(config.output_conflict_handling, OutputConflictHandling::Error) {
44+
cmd.arg("--locked");
45+
}
4346
};
4447

4548
setup_command(&mut build);

0 commit comments

Comments
 (0)