Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
debug(tests): print wasmcloud command output
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
  • Loading branch information
vados-cosmonic committed Jul 7, 2023
1 parent 41d2940 commit d778ac4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/wash-lib/src/start/wasmcloud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ mod test {
.await;
if log_file_present_wait.is_err() {
bail!(
"failed to start wasmcloud (log path is missing).\nstderr:\n{}\nstdout:\n{}",
"failed to start wasmcloud (log path is missing).\nstderr:{:?}\nstdout:{:?}\nstderr log:\n{}\nstdout log:\n{}",
host_child.stderr,
host_child.stdout,
tokio::fs::read_to_string(stderr_log_path.clone()).await?,
tokio::fs::read_to_string(stdout_log_path.clone()).await?,
);
Expand Down Expand Up @@ -550,7 +552,9 @@ mod test {
.await
.context("failed to kill host child process")?;
bail!(
"failed to start wasmcloud (logs did not contain expected content).\nstderr:\n{}\nstdout:\n{}",
"failed to start wasmcloud (logs did not contain expected content).stderr:{:?}\nstdout:{:?}\nstderr:\n{}\nstdout:\n{}",
host_child.stderr,
host_child.stdout,
tokio::fs::read_to_string(stderr_log_path.clone()).await?,
tokio::fs::read_to_string(stdout_log_path.clone()).await?,
);
Expand Down

0 comments on commit d778ac4

Please sign in to comment.