mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03: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:
+4
-12
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user