From 40846de37adbb8115bdb25649d7a99efed7e20bd Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Tue, 25 Aug 2026 10:58:37 -0600 Subject: [PATCH] test(bundles): skip uninstall ambiguity test when stdout is a TTY The non-interactive bail under test only triggers without a TTY; from a terminal the code correctly opens the interactive selector instead, so the test hung or failed depending on input. Same guard as the three sibling non-interactive tests. --- src/config/install_remote.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config/install_remote.rs b/src/config/install_remote.rs index 6a43966..ee97c23 100644 --- a/src/config/install_remote.rs +++ b/src/config/install_remote.rs @@ -4286,6 +4286,12 @@ mod tests { #[test] #[serial] fn uninstall_shorthand_with_multiple_matches_bails_non_interactively() { + if *IS_STDOUT_TERMINAL { + eprintln!( + "Skipping uninstall_shorthand_with_multiple_matches_bails_non_interactively: requires non-TTY stdout" + ); + return; + } let _guard = TestVaultConfigGuard::new("uninst-short-multi"); let mut store = BundleStore::load().unwrap(); store