From 4d04cd9ab9d50c919e310ae5305e1800c53ca20c Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 19 Jul 2021 14:24:13 +0200 Subject: [PATCH] comment on test output paths cargo should be getting a new env var for this soon Signed-off-by: Wolfgang Bumiller --- pbs-client/src/tools/key_source.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pbs-client/src/tools/key_source.rs b/pbs-client/src/tools/key_source.rs index aeb99feb..6dade75e 100644 --- a/pbs-client/src/tools/key_source.rs +++ b/pbs-client/src/tools/key_source.rs @@ -362,7 +362,9 @@ pub fn get_encryption_key_password() -> Result, Error> { #[cfg(test)] fn create_testdir(name: &str) -> Result { - let mut testdir: PathBuf = String::from("./target/testout").into(); + // FIXME: + //let mut testdir: PathBuf = format!("{}/testout", env!("CARGO_TARGET_TMPDIR")).into(); + let mut testdir: PathBuf = "./target/testout".to_string().into(); testdir.push(std::module_path!()); testdir.push(name);