From ed6a8d0462f6c09300e0d8d497a1114d0f67eb9f Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Sat, 20 Aug 2022 10:51:17 +0100 Subject: [PATCH] Revert tests Revert symlink tests to their old form - No mix of arg and args & a comment explaining why we need a large width. --- tests/tests_symlinks.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/tests/tests_symlinks.rs b/tests/tests_symlinks.rs index 08b96f6..92aca17 100644 --- a/tests/tests_symlinks.rs +++ b/tests/tests_symlinks.rs @@ -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.