Revert tests

Revert symlink tests to their old form - No mix of arg and args & a
comment explaining why we need a large width.
This commit is contained in:
andy.boot
2022-08-20 10:51:17 +01:00
parent 4cef6aaa84
commit ed6a8d0462
+4 -12
View File
@@ -39,12 +39,9 @@ pub fn test_soft_sym_link() {
let a = format!("─┴ {}", dir_s); let a = format!("─┴ {}", dir_s);
let mut cmd = Command::cargo_bin("dust").unwrap(); let mut cmd = Command::cargo_bin("dust").unwrap();
// Mac test runners create long filenames in tmp directories
let output = cmd let output = cmd
.arg("-p") .args(["-p", "-c", "-s", "-w 999", dir_s])
.arg("-c")
.arg("-s")
.args(["-w", "999"])
.arg(dir_s)
.unwrap() .unwrap()
.stdout; .stdout;
@@ -75,13 +72,8 @@ pub fn test_hard_sym_link() {
let dirs_output = format!("─┴ {}", dir_s); let dirs_output = format!("─┴ {}", dir_s);
let mut cmd = Command::cargo_bin("dust").unwrap(); let mut cmd = Command::cargo_bin("dust").unwrap();
let output = cmd // Mac test runners create long filenames in tmp directories
.arg("-p") let output = cmd.args(["-p", "-c", "-w 999", dir_s]).unwrap().stdout;
.arg("-c")
.args(["-w", "999"])
.arg(dir_s)
.unwrap()
.stdout;
// The link should not appear in the output because multiple inodes are now ordered // The link should not appear in the output because multiple inodes are now ordered
// then filtered. // then filtered.