Skip to content

Commit 6aa5f1a

Browse files
committed
Auto merge of #12314 - Alexendoo:output-conflict-handling, r=flip1995
Default test output conflict handling to error oli-obk/ui_test#175 got rid of the `bool` that controlled the default handling so we need to specify it ourselves r? `@flip1995` changelog: none
2 parents fa2a3c5 + f67c3f4 commit 6aa5f1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/compile-test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![allow(unused_extern_crates)]
66

77
use ui_test::spanned::Spanned;
8-
use ui_test::{status_emitter, Args, CommandBuilder, Config, Match, Mode};
8+
use ui_test::{status_emitter, Args, CommandBuilder, Config, Match, Mode, OutputConflictHandling};
99

1010
use std::collections::BTreeMap;
1111
use std::env::{self, set_var, var_os};
@@ -113,6 +113,7 @@ fn base_config(test_dir: &str) -> (Config, Args) {
113113

114114
let target_dir = PathBuf::from(var_os("CARGO_TARGET_DIR").unwrap_or_else(|| "target".into()));
115115
let mut config = Config {
116+
output_conflict_handling: OutputConflictHandling::Error,
116117
filter_files: env::var("TESTNAME")
117118
.map(|filters| filters.split(',').map(str::to_string).collect())
118119
.unwrap_or_default(),

0 commit comments

Comments
 (0)