From 6d33c2e05aff34cf63c703e329009b05b930bdea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Gaspard?= Date: Fri, 16 Mar 2018 01:15:23 +0100 Subject: [PATCH] Output nicer logs for testing --- ofborg/src/tasks/build.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ofborg/src/tasks/build.rs b/ofborg/src/tasks/build.rs index edf524a..7e13d95 100644 --- a/ofborg/src/tasks/build.rs +++ b/ofborg/src/tasks/build.rs @@ -323,7 +323,7 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker { job.attrs.clone(), ); - println!("Can build: {}, Cannot build: {}", + println!("Can build: '{}', Cannot build: '{}'", can_build.join(", "), cannot_build.join(", ")); @@ -370,7 +370,10 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker { }; println!("ok built ({:?}), building", success); - println!("Lines: {:?}", snippet_log); + println!("Lines:\n-----8<-----"); + snippet_log.iter().inspect(|x| println!("{}", x)).last(); + println!("----->8-----"); + assert!(success); let last10lines: Vec = snippet_log.into_iter().collect::>();