From a485ab2f6f6b67928c6d8a2b66074d943afd4810 Mon Sep 17 00:00:00 2001 From: Peter Morgan Date: Mon, 2 Sep 2024 10:45:31 +0100 Subject: [PATCH] also move time test output to under "logs" --- tansu-storage/src/index/time.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tansu-storage/src/index/time.rs b/tansu-storage/src/index/time.rs index 1f34931..c268973 100644 --- a/tansu-storage/src/index/time.rs +++ b/tansu-storage/src/index/time.rs @@ -367,7 +367,10 @@ mod tests { thread::current() .name() .ok_or(Error::Message(String::from("unnamed thread"))) - .and_then(|name| File::create(format!("test-{}.log", name)).map_err(Into::into)) + .and_then(|name| { + File::create(format!("../logs/{}/{name}.log", env!("CARGO_PKG_NAME"))) + .map_err(Into::into) + }) .map(Arc::new)?, ) .finish();