aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe')
-rw-r--r--crates/shirabe/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/shirabe/src/lib.rs b/crates/shirabe/src/lib.rs
index 2de7f29..7c4fc96 100644
--- a/crates/shirabe/src/lib.rs
+++ b/crates/shirabe/src/lib.rs
@@ -145,8 +145,11 @@ mod cli_tests {
std::env::remove_var("LINES");
}
+ // Force non-interactive: the suite must not block on a prompt (e.g. `init`) when run under
+ // a TTY, where Composer's own logic would otherwise keep interaction enabled.
let mut argv = vec!["composer".to_string()];
argv.extend(args.iter().map(|s| s.to_string()));
+ argv.push("--no-interaction".to_string());
let result = catch_unwind(AssertUnwindSafe(|| crate::run(argv)));
if let Some(orig) = original {