]> git.proxmox.com Git - proxmox-backup.git/commitdiff
comment on test output paths
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 19 Jul 2021 12:24:13 +0000 (14:24 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 19 Jul 2021 12:24:13 +0000 (14:24 +0200)
cargo should be getting a new env var for this soon

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
pbs-client/src/tools/key_source.rs

index aeb99feb47579fe2514414d58b2f304f61c81137..6dade75e2fb977dbdcdec314ba0411cd97ee8990 100644 (file)
@@ -362,7 +362,9 @@ pub fn get_encryption_key_password() -> Result<Vec<u8>, Error> {
 
 #[cfg(test)]
 fn create_testdir(name: &str) -> Result<String, Error> {
-    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);