diff --git a/tests/dirs_only.rs b/tests/dirs_only.rs index 9f740471..598a18e2 100644 --- a/tests/dirs_only.rs +++ b/tests/dirs_only.rs @@ -5,7 +5,7 @@ mod utils; #[test] fn dirs_only() { assert_eq!( - utils::run_cmd(&["--dirs-only", "--sort", "name", "--no-config", "tests/data"]), + utils::run_cmd(&["--dirs-only", "--sort", "name", "tests/data"]), indoc!( " data (1.21 KiB) diff --git a/tests/file_count.rs b/tests/file_count.rs index 28e7d1e2..0617145a 100644 --- a/tests/file_count.rs +++ b/tests/file_count.rs @@ -5,7 +5,7 @@ mod utils; #[test] fn file_count() { assert_eq!( - utils::run_cmd(&["--count", "--sort", "name", "--no-config", "tests/data"]), + utils::run_cmd(&["--count", "--sort", "name", "tests/data"]), indoc!( " data (1.21 KiB) @@ -32,7 +32,6 @@ fn file_count_report() { "--report", "--sort", "name", - "--no-config", "tests/data" ]), indoc!( diff --git a/tests/glob.rs b/tests/glob.rs index c59747ae..1673cb86 100644 --- a/tests/glob.rs +++ b/tests/glob.rs @@ -10,7 +10,6 @@ fn glob() { "name", "--glob", "*.txt", - "--no-config", "tests/data" ]), indoc!( @@ -36,7 +35,6 @@ fn glob_negative() { "name", "--glob", "!*.txt", - "--no-config", "tests/data" ]), indoc!( @@ -59,7 +57,6 @@ fn glob_case_insensitive() { "--glob", "*.TXT", "--glob-case-insensitive", - "--no-config", "tests/data" ]), indoc!( @@ -85,7 +82,6 @@ fn iglob() { "name", "--iglob", "*.TXT", - "--no-config", "tests/data" ]), indoc!( diff --git a/tests/level.rs b/tests/level.rs index 7b89568b..314c37ad 100644 --- a/tests/level.rs +++ b/tests/level.rs @@ -10,7 +10,6 @@ fn level() { "name", "--level", "1", - "--no-config", "tests/data" ]), indoc!( diff --git a/tests/prune.rs b/tests/prune.rs index d4fb4b7d..386f9d58 100644 --- a/tests/prune.rs +++ b/tests/prune.rs @@ -10,7 +10,6 @@ fn prune() { "name", "--glob", "*.txt", - "--no-config", "--prune", "tests/data" ]), diff --git a/tests/report.rs b/tests/report.rs index 94bfe890..33114289 100644 --- a/tests/report.rs +++ b/tests/report.rs @@ -5,7 +5,7 @@ mod utils; #[test] fn report() { assert_eq!( - utils::run_cmd(&["--report", "--sort", "name", "--no-config", "tests/data"]), + utils::run_cmd(&["--report", "--sort", "name", "tests/data"]), indoc!( " d 1241 B data @@ -30,7 +30,6 @@ fn report_human() { "--human", "--sort", "name", - "--no-config", "tests/data" ]), indoc!( @@ -58,7 +57,6 @@ fn report_with_level() { "1", "--sort", "name", - "--no-config", "tests/data" ]), indoc!( diff --git a/tests/size_left.rs b/tests/size_left.rs index abcde9fb..197594a5 100644 --- a/tests/size_left.rs +++ b/tests/size_left.rs @@ -3,7 +3,7 @@ mod utils; #[test] fn size_left_bin() { assert_eq!( - utils::run_cmd(&["--sort", "name", "--no-config", "--size-left", "tests/data"]), + utils::run_cmd(&["--sort", "name", "--size-left", "tests/data"]), "1.21 KiB data 308 B ├─ dream_cycle 308 B │ └─ polaris.txt @@ -23,7 +23,6 @@ fn size_left_si() { utils::run_cmd(&[ "--sort", "name", - "--no-config", "-p", "si", "--size-left", @@ -48,7 +47,6 @@ fn size_left_altered_precision() { utils::run_cmd(&[ "--sort", "name", - "--no-config", "-n", "3", "--size-left", diff --git a/tests/sort.rs b/tests/sort.rs index 32501ec9..19f33e41 100644 --- a/tests/sort.rs +++ b/tests/sort.rs @@ -5,7 +5,7 @@ mod utils; #[test] fn sort_name() { assert_eq!( - utils::run_cmd(&["--sort", "name", "--no-config", "tests/data"]), + utils::run_cmd(&["--sort", "name", "tests/data"]), indoc!( " data (1.21 KiB) @@ -30,7 +30,6 @@ fn sort_name_dir_first() { "--sort", "name", "--dirs-first", - "--no-config", "tests/data" ]), indoc!( @@ -53,7 +52,7 @@ fn sort_name_dir_first() { #[test] fn sort_size() { assert_eq!( - utils::run_cmd(&["--sort", "size", "--no-config", "tests/data"]), + utils::run_cmd(&["--sort", "size", "tests/data"]), indoc!( " data (1.21 KiB) @@ -78,7 +77,6 @@ fn sort_size_dir_first() { "--sort", "size", "--dirs-first", - "--no-config", "tests/data" ]), indoc!( diff --git a/tests/suppress_size.rs b/tests/suppress_size.rs index 3aef78c5..34e00861 100644 --- a/tests/suppress_size.rs +++ b/tests/suppress_size.rs @@ -9,7 +9,6 @@ fn suppress_size() { "--suppress-size", "--sort", "name", - "--no-config", "tests/data" ]), indoc!( diff --git a/tests/symlink.rs b/tests/symlink.rs index 80f7b161..53fe3764 100644 --- a/tests/symlink.rs +++ b/tests/symlink.rs @@ -24,7 +24,6 @@ mod test { "--sort", "name", "--follow-links", - "--no-config", &link_canonical ]), indoc!( diff --git a/tests/utils/mod.rs b/tests/utils/mod.rs index ecf07967..7426d162 100644 --- a/tests/utils/mod.rs +++ b/tests/utils/mod.rs @@ -4,7 +4,7 @@ use strip_ansi_escapes::strip as strip_ansi_escapes; pub fn run_cmd(args: &[&str]) -> String { let mut cmd = Command::new("cargo"); - cmd.arg("run").arg("--").arg("--threads").arg("1"); + cmd.args(["run", "--", "--threads", "1", "--no-config"]); for arg in args { cmd.arg(arg);