Skip to content

Commit

Permalink
Auto merge of #12314 - Alexendoo:output-conflict-handling, r=flip1995
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Feb 19, 2024
2 parents fa2a3c5 + f67c3f4 commit 6aa5f1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/compile-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#![allow(unused_extern_crates)]

use ui_test::spanned::Spanned;
use ui_test::{status_emitter, Args, CommandBuilder, Config, Match, Mode};
use ui_test::{status_emitter, Args, CommandBuilder, Config, Match, Mode, OutputConflictHandling};

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

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

0 comments on commit 6aa5f1a

Please sign in to comment.