From f40e8ce6b7d7c903f443a1619d33af4afba80216 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 25 Jun 2021 16:11:31 +0100 Subject: [PATCH] tests: For test_console_file print out the console file This should aid debugging of this test flakiness. See: #2799 Signed-off-by: Rob Bradford --- tests/integration.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index 430267150..b6e403864 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -3213,6 +3213,13 @@ mod tests { let mut f = std::fs::File::open(console_path).unwrap(); let mut buf = String::new(); f.read_to_string(&mut buf).unwrap(); + + if !buf.contains("cloud login:") { + eprintln!( + "\n\n==== Console file output ====\n\n{}\n\n==== End console file output ====", + buf + ); + } assert!(buf.contains("cloud login:")); });