fix: test 未实现子命令退出码由 0 改为 2 以区分成功与运行失败

This commit is contained in:
2026-09-26 13:36:53 +00:00
parent 68004defca
commit 381eebb02d
2 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -470,5 +470,6 @@ fn not_implemented(command: &str) -> ExitCode {
use ansi_term::Colour::Yellow;
kernel_info!("command not yet implemented: {}", command);
eprintln!("{}", Yellow.paint(format!("'{command}' is not yet implemented")));
ExitCode::SUCCESS
// 2 = 未实现,与 0=成功、1=运行失败区分,供脚本与 CI 识别。
ExitCode::from(2)
}