|
|
@ -134,16 +134,21 @@ fn run() -> anyhow::Result<()> {
|
|
|
|
.map(|entry| {
|
|
|
|
.map(|entry| {
|
|
|
|
let entry = entry.context("read_dir(/bin) failed")?;
|
|
|
|
let entry = entry.context("read_dir(/bin) failed")?;
|
|
|
|
let path = entry.path();
|
|
|
|
let path = entry.path();
|
|
|
|
let status = std::process::Command::new(&path)
|
|
|
|
let mut cmd = std::process::Command::new(&path);
|
|
|
|
.args(&args)
|
|
|
|
cmd.args(&args)
|
|
|
|
.env("RUST_LOG", "debug")
|
|
|
|
.env("RUST_BACKTRACE", "1")
|
|
|
|
|
|
|
|
.env("RUST_LOG", "debug");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
println!("running {cmd:?}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let status = cmd
|
|
|
|
.status()
|
|
|
|
.status()
|
|
|
|
.with_context(|| format!("failed to execute {}", path.display()))?;
|
|
|
|
.with_context(|| format!("failed to run {cmd:?}"))?;
|
|
|
|
|
|
|
|
|
|
|
|
if status.code() == Some(0) {
|
|
|
|
if status.code() == Some(0) {
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
Err(anyhow::anyhow!("{} failed: {status:?}", path.display()))
|
|
|
|
Err(anyhow::anyhow!("{cmd:?} failed: {status:?}"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.filter_map(|result| {
|
|
|
|
.filter_map(|result| {
|
|
|
|