diff --git a/src/test_utils.rs b/src/test_utils.rs index 7dd332d81..5498ca5d0 100644 --- a/src/test_utils.rs +++ b/src/test_utils.rs @@ -1082,8 +1082,6 @@ impl Drop for TestContext { .join(format!("test-account-{}.db", self.name())); tokio::fs::copy(from, &target).await.unwrap(); eprintln!("Copied database from {from:?} to {target:?}\n"); - } else { - eprintln!("Hint: If you want to examine the database files, set environment variable DELTACHAT_SAVE_TMP_DB=1\n") } }); } @@ -1168,6 +1166,11 @@ impl Drop for InnerLogSink { while let Ok(event) = self.events.try_recv() { print_logevent(&event); } + if std::env::var("DELTACHAT_SAVE_TMP_DB").is_err() { + eprintln!( + "note: If you want to examine the database files, set environment variable DELTACHAT_SAVE_TMP_DB=1" + ) + } } }