mirror of
https://github.com/bootandy/dust.git
synced 2025-12-05 20:40:11 -08:00
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:
@@ -39,12 +39,9 @@ pub fn test_soft_sym_link() {
|
||||
let a = format!("─┴ {}", dir_s);
|
||||
|
||||
let mut cmd = Command::cargo_bin("dust").unwrap();
|
||||
// Mac test runners create long filenames in tmp directories
|
||||
let output = cmd
|
||||
.arg("-p")
|
||||
.arg("-c")
|
||||
.arg("-s")
|
||||
.args(["-w", "999"])
|
||||
.arg(dir_s)
|
||||
.args(["-p", "-c", "-s", "-w 999", dir_s])
|
||||
.unwrap()
|
||||
.stdout;
|
||||
|
||||
@@ -75,13 +72,8 @@ pub fn test_hard_sym_link() {
|
||||
let dirs_output = format!("─┴ {}", dir_s);
|
||||
|
||||
let mut cmd = Command::cargo_bin("dust").unwrap();
|
||||
let output = cmd
|
||||
.arg("-p")
|
||||
.arg("-c")
|
||||
.args(["-w", "999"])
|
||||
.arg(dir_s)
|
||||
.unwrap()
|
||||
.stdout;
|
||||
// Mac test runners create long filenames in tmp directories
|
||||
let output = cmd.args(["-p", "-c", "-w 999", dir_s]).unwrap().stdout;
|
||||
|
||||
// The link should not appear in the output because multiple inodes are now ordered
|
||||
// then filtered.
|
||||
|
||||
Reference in New Issue
Block a user