From ad42646e430b70c231c9be1534fabfa396edf113 Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Thu, 5 Sep 2024 11:15:52 +0800 Subject: [PATCH] test: add --sort-input --- crates/moon/src/cli/doc.rs | 2 +- crates/moon/tests/test_cases/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/moon/src/cli/doc.rs b/crates/moon/src/cli/doc.rs index cbde9d8c..b140213b 100644 --- a/crates/moon/src/cli/doc.rs +++ b/crates/moon/src/cli/doc.rs @@ -84,7 +84,7 @@ pub fn run_doc(cli: UniversalFlags, cmd: DocSubcommand) -> anyhow::Result { let moonbuild_opt = MoonbuildOpt { source_dir: source_dir.clone(), target_dir, - sort_input: false, + sort_input: true, run_mode, ..Default::default() }; diff --git a/crates/moon/tests/test_cases/mod.rs b/crates/moon/tests/test_cases/mod.rs index 826a61ca..507d011b 100644 --- a/crates/moon/tests/test_cases/mod.rs +++ b/crates/moon/tests/test_cases/mod.rs @@ -5503,7 +5503,7 @@ fn test_specify_source_dir_001() { "#]], ); check( - &get_stderr_on_success_with_args_and_replace_dir(&dir, ["check"]), + &get_stderr_on_success_with_args_and_replace_dir(&dir, ["check", "--sort-input"]), expect![[r#" Finished. moon: ran 3 tasks, now up to date "#]],