Skip to content

Commit

Permalink
tests: Include test name in error context
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 authored and torokati44 committed Aug 15, 2023
1 parent cad8e10 commit b1981de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests/regression_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ fn main() {
.to_string_lossy()
.replace('\\', "/");
if is_candidate(&args, &name) {
let test = Test::from_options_file(file.path(), name)
.context("Couldn't create test")
let test = Test::from_options_file(file.path(), name.clone())
.with_context(|| format!("Couldn't create test {name}"))
.unwrap();
let ignore = !test.should_run(!args.list);
let mut trial = Trial::test(test.name.to_string(), move || {
Expand Down

0 comments on commit b1981de

Please sign in to comment.