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.
This commit is contained in:
@@ -4286,6 +4286,12 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
#[serial]
|
#[serial]
|
||||||
fn uninstall_shorthand_with_multiple_matches_bails_non_interactively() {
|
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 _guard = TestVaultConfigGuard::new("uninst-short-multi");
|
||||||
let mut store = BundleStore::load().unwrap();
|
let mut store = BundleStore::load().unwrap();
|
||||||
store
|
store
|
||||||
|
|||||||
Reference in New Issue
Block a user