From 1b38bdb5a1de127ca8040f5a132d08c73ccb3c67 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 15:37:24 +0900 Subject: refactor(console): propagate getComposer's exit(1) as ExitException Composer's Application::getComposer() calls exit(1) when a required Composer instance fails to build under areExceptionsCaught(). Replace the deep std::process::exit with a php-shim ExitException that mirrors PHP's `exit` construct: it bypasses parent::doRun()'s catch and Symfony's renderThrowable (excluded at both broad catches), so the already-written plain error message is not re-rendered and the process exits with code 1. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/cli.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'crates/shirabe/tests') diff --git a/crates/shirabe/tests/cli.rs b/crates/shirabe/tests/cli.rs index 9fd6470..5fd3980 100644 --- a/crates/shirabe/tests/cli.rs +++ b/crates/shirabe/tests/cli.rs @@ -125,12 +125,10 @@ run_no_panic_tests! { run_about => "about", #[ignore = "currently panics"] run_archive => "archive", - #[ignore = "currently panics"] run_audit => "audit", #[ignore = "currently panics"] run_browse => "browse", run_bump => "bump", - #[ignore = "currently panics"] run_check_platform_reqs => "check-platform-reqs", #[ignore = "currently panics"] run_clear_cache => "clear-cache", @@ -142,25 +140,19 @@ run_no_panic_tests! { run_depends => "depends", #[ignore = "currently panics"] run_diagnose => "diagnose", - #[ignore = "currently panics"] run_dump_autoload => "dump-autoload", - #[ignore = "currently panics"] run_exec => "exec", - #[ignore = "currently panics"] run_fund => "fund", #[ignore = "currently panics"] run_global => "global", #[ignore = "currently panics"] run_init => "init", - #[ignore = "currently panics"] run_install => "install", - #[ignore = "currently panics"] run_licenses => "licenses", #[ignore = "currently panics"] run_outdated => "outdated", #[ignore = "currently panics"] run_prohibits => "prohibits", - #[ignore = "currently panics"] run_reinstall => "reinstall", #[ignore = "currently panics"] run_remove => "remove", @@ -175,9 +167,7 @@ run_no_panic_tests! { run_self_update => "self-update", #[ignore = "currently panics"] run_show => "show", - #[ignore = "currently panics"] run_status => "status", - #[ignore = "currently panics"] run_suggests => "suggests", #[ignore = "currently panics"] run_update => "update", -- cgit v1.3.1