]> git.proxmox.com Git - proxmox-backup.git/commitdiff
tests/catar.rs: make it compile again
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 6 Apr 2019 09:26:17 +0000 (11:26 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 6 Apr 2019 09:26:17 +0000 (11:26 +0200)
tests/catar.rs

index c9c7c93f01d3576cb0dd16505cde1165e8f1876d..b57b4c3acd4a5cac0839a14e764c99c9dc0b0fe0 100644 (file)
@@ -1,11 +1,11 @@
 use failure::*;
 
 use std::process::Command;
-use proxmox_backup::catar::encoder::*;
+use proxmox_backup::pxar::*;
 
 fn run_test(dir_name: &str) -> Result<(), Error> {
 
-    println!("run catar test {}", dir_name);
+    println!("run pxar test {}", dir_name);
 
     Command::new("casync")
         .arg("make")
@@ -26,7 +26,7 @@ fn run_test(dir_name: &str) -> Result<(), Error> {
 
     let path = std::path::PathBuf::from(dir_name);
 
-    CaTarEncoder::encode(path, &mut dir, None, &mut writer)?;
+    Encoder::encode(path, &mut dir, &mut writer, false, false)?;
 
     Command::new("cmp")
         .arg("--verbose")