Skip to content

Commit 0089838

Browse files
committed
add more context to setup errors
1 parent 821564e commit 0089838

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ci/svd2rust-regress/src/svd_test.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,13 @@ impl TestCase {
116116
opts: &Opts,
117117
test_opts: &TestOpts,
118118
) -> Result<Option<Vec<PathBuf>>, TestError> {
119-
let (chip_dir, mut process_stderr_paths) = self.setup_case(
120-
&opts.output_dir,
121-
&test_opts.current_bin_path,
122-
test_opts.command.as_deref(),
123-
)?;
119+
let (chip_dir, mut process_stderr_paths) = self
120+
.setup_case(
121+
&opts.output_dir,
122+
&test_opts.current_bin_path,
123+
test_opts.command.as_deref(),
124+
)
125+
.with_context(|| anyhow!("when setting up case for {}", self.name()))?;
124126
// Run `cargo check`, capturing stderr to a log file
125127
let cargo_check_err_file = path_helper_base(&chip_dir, &["cargo-check.err.log"]);
126128
let output = Command::new("cargo")

0 commit comments

Comments
 (0)