mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-10 09:13:13 +00:00
Show local runner output in CI logs
This commit is contained in:
parent
9baa9d760e
commit
fa562e514b
@ -1,4 +1,8 @@
|
|||||||
use std::{env, path::Path, process::Command};
|
use std::{
|
||||||
|
env,
|
||||||
|
path::Path,
|
||||||
|
process::{Command, Stdio},
|
||||||
|
};
|
||||||
|
|
||||||
// Manually run the local runner binary as a smoke test.
|
// Manually run the local runner binary as a smoke test.
|
||||||
// This spins up real nodes and should be invoked explicitly:
|
// This spins up real nodes and should be invoked explicitly:
|
||||||
@ -31,7 +35,9 @@ fn local_runner_bin_smoke() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let output = cmd
|
let status = cmd
|
||||||
|
.stdout(Stdio::inherit())
|
||||||
|
.stderr(Stdio::inherit())
|
||||||
.env("POL_PROOF_DEV_MODE", "true")
|
.env("POL_PROOF_DEV_MODE", "true")
|
||||||
.env(
|
.env(
|
||||||
"NOMOS_CIRCUITS",
|
"NOMOS_CIRCUITS",
|
||||||
@ -59,15 +65,10 @@ fn local_runner_bin_smoke() {
|
|||||||
env::var("LOCAL_DEMO_EXECUTORS").unwrap_or_else(|_| "1".into()),
|
env::var("LOCAL_DEMO_EXECUTORS").unwrap_or_else(|_| "1".into()),
|
||||||
)
|
)
|
||||||
.env("RUST_BACKTRACE", "1")
|
.env("RUST_BACKTRACE", "1")
|
||||||
.output()
|
.status()
|
||||||
.expect("failed to spawn local runner");
|
.expect("failed to spawn local runner");
|
||||||
|
|
||||||
if !output.status.success() {
|
if !status.success() {
|
||||||
panic!(
|
panic!("local runner binary failed: status={status}");
|
||||||
"local runner binary failed: status={}\nstdout:\n{}\nstderr:\n{}",
|
|
||||||
output.status,
|
|
||||||
String::from_utf8_lossy(&output.stdout),
|
|
||||||
String::from_utf8_lossy(&output.stderr),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user