Skip to content

Commit 10f54ba

Browse files
committed
cdc tests can now print out the stderr stream
Signed-off-by: Tom Haygarth <[email protected]>
1 parent 7ca8c61 commit 10f54ba

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

core-dump-composer/tests/default.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ fn default_scenario() -> Result<(), std::io::Error> {
6767
.expect("failed to execute core dump composer");
6868

6969
println!("{}", String::from_utf8_lossy(&cdc.stdout));
70+
println!("{}", String::from_utf8_lossy(&cdc.stderr));
7071

7172
Command::new("unzip")
7273
.arg("output/*.zip")

core-dump-composer/tests/imagecommand.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ fn image_command_scenario() -> Result<(), std::io::Error> {
5959
.expect("failed to execute core dump composer");
6060

6161
println!("{}", String::from_utf8_lossy(&cdc.stdout));
62+
println!("{}", String::from_utf8_lossy(&cdc.stderr));
6263

6364
Command::new("unzip")
6465
.arg("output/*.zip")

core-dump-composer/tests/namespacedfiles.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ fn namespaced_files_scenario() -> Result<(), std::io::Error> {
6868
.expect("failed to execute core dump composer");
6969

7070
println!("{}", String::from_utf8_lossy(&cdc.stdout));
71+
println!("{}", String::from_utf8_lossy(&cdc.stderr));
7172

7273
Command::new("unzip")
7374
.arg("output/*.zip")

core-dump-composer/tests/timeout.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ fn timeout_scenario() -> Result<(), std::io::Error> {
6565
.output()
6666
.expect("Couldn't execute");
6767

68-
// FIXME: It would be nice to check the log output here.
68+
println!("{}", String::from_utf8_lossy(&cdc.stdout));
69+
println!("{}", String::from_utf8_lossy(&cdc.stderr));
6970
assert_eq!(32, *&cdc.status.code().unwrap());
7071
Ok(())
7172
}

core-dump-composer/tests/withoutcrio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ fn without_crio_scenario() -> Result<(), std::io::Error> {
6868
.expect("failed to execute core dump composer");
6969

7070
println!("{}", String::from_utf8_lossy(&cdc.stdout));
71+
println!("{}", String::from_utf8_lossy(&cdc.stderr));
7172

7273
Command::new("unzip")
7374
.arg("output/*.zip")

0 commit comments

Comments
 (0)