Update ui_test requirement from 0.23.0 to 0.29.1 (#18289)

# Objective

- Fixes #18223.

## Solution

- Updated ui_test requirement from 0.23.0 to 0.29.1.
- Updated code to use the new APIs.

## Testing

- Ran CI locally.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Martín Maita 2025-03-13 17:34:33 +01:00 committed by GitHub
parent 6299e3de3b
commit d70c469483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
publish = false
[dependencies]
ui_test = "0.23.0"
ui_test = "0.29.1"
[[test]]
name = "example"

View File

@ -7,13 +7,14 @@ use std::{
pub use ui_test;
use ui_test::{
bless_output_files,
color_eyre::eyre::eyre,
default_file_filter, default_per_file_config,
dependencies::DependencyBuilder,
run_tests_generic,
ignore_output_conflict, run_tests_generic,
spanned::Spanned,
status_emitter::{Gha, StatusEmitter, Text},
Args, Config, OutputConflictHandling,
Args, Config,
};
/// Use this instead of hand rolling configs.
@ -44,10 +45,10 @@ fn basic_config(root_dir: impl Into<PathBuf>, args: &Args) -> ui_test::Result<Co
.to_string(),
),
output_conflict_handling: if env::var_os("BLESS").is_some() {
OutputConflictHandling::Bless
bless_output_files
} else {
// stderr output changes between rust versions so we just rely on annotations
OutputConflictHandling::Ignore
ignore_output_conflict
},
..Config::rustc(root_dir)
};