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

Commit d778ac4

Browse files
debug(tests): print wasmcloud command output
Signed-off-by: Victor Adossi <[email protected]>
1 parent 41d2940 commit d778ac4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/wash-lib/src/start/wasmcloud.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,9 @@ mod test {
510510
.await;
511511
if log_file_present_wait.is_err() {
512512
bail!(
513-
"failed to start wasmcloud (log path is missing).\nstderr:\n{}\nstdout:\n{}",
513+
"failed to start wasmcloud (log path is missing).\nstderr:{:?}\nstdout:{:?}\nstderr log:\n{}\nstdout log:\n{}",
514+
host_child.stderr,
515+
host_child.stdout,
514516
tokio::fs::read_to_string(stderr_log_path.clone()).await?,
515517
tokio::fs::read_to_string(stdout_log_path.clone()).await?,
516518
);
@@ -550,7 +552,9 @@ mod test {
550552
.await
551553
.context("failed to kill host child process")?;
552554
bail!(
553-
"failed to start wasmcloud (logs did not contain expected content).\nstderr:\n{}\nstdout:\n{}",
555+
"failed to start wasmcloud (logs did not contain expected content).stderr:{:?}\nstdout:{:?}\nstderr:\n{}\nstdout:\n{}",
556+
host_child.stderr,
557+
host_child.stdout,
554558
tokio::fs::read_to_string(stderr_log_path.clone()).await?,
555559
tokio::fs::read_to_string(stdout_log_path.clone()).await?,
556560
);

0 commit comments

Comments
 (0)