From 32185aec700d4266a602f892afc738ca1c7cf111 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 30 Dec 2020 01:16:58 +0000 Subject: [PATCH] wip testing tidy Signed-off-by: Ian Jackson --- wdriver.rs | 3 ++- wdriver/wdt-simple.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wdriver.rs b/wdriver.rs index db678d15..a77a5cfb 100644 --- a/wdriver.rs +++ b/wdriver.rs @@ -828,8 +828,9 @@ fn screenshot(driver: &T4d, count: &mut ScreenShotCount, slug: &str) { let path = format!("{:03}{}.png", count, slug); *count += 1; driver.screenshot(&path::PathBuf::from(&path)) - .context(path) + .with_context(|| path.clone()) .context("take screenshot")?; + debug!("screenshot {}", &path); } impl<'g> WindowGuard<'g> { diff --git a/wdriver/wdt-simple.rs b/wdriver/wdt-simple.rs index f2840464..9d060237 100644 --- a/wdriver/wdt-simple.rs +++ b/wdriver/wdt-simple.rs @@ -14,7 +14,6 @@ fn main(){ su.w(&alice)?.synch()?; - sleep(750 * MS); debug!("finishing"); } info!("ok"); -- 2.30.2