Skip to content

Commit

Permalink
flowey: include all azcopy log output (#228)
Browse files Browse the repository at this point in the history
We can't diagnose what we can't see.
  • Loading branch information
jstarks authored Oct 31, 2024
1 parent ef90c7f commit d90131b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions flowey/flowey_lib_hvlite/src/download_openvmm_vmm_tests_vhds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,12 @@ fn download_blobs_from_azure(
)
.run()?;
let dir_contents = sh.read_dir(sh.current_dir())?;
let log_file: PathBuf = dir_contents
.into_iter()
for log in dir_contents
.iter()
.filter(|p| p.extension() == Some("log".as_ref()))
.take(1)
.collect();
let job_id = log_file.file_stem().unwrap();
xshell::cmd!(sh, "{azcopy_bin} jobs show {job_id} --with-status=Failed").run()?;
println!("{}", sh.read_file(log_file)?);
{
println!("{}:\n{}\n", log.display(), sh.read_file(log)?);
}
return result.context("failed to download VMM test disk images");
}

Expand Down

0 comments on commit d90131b

Please sign in to comment.