mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
docs(test): note which bash the pty test covers on which machine
The rcfile installs its hook into PROMPT_COMMAND as an array only on bash 5.1 and up, and appends to a string below that — a version check inherited from bash-preexec. macOS still ships 3.2.57, so a developer run takes the older branch and a Linux CI runner takes the newer one. Neither machine covers both, which is worth saying in the test rather than leaving for someone to work out from a passing run.
This commit is contained in:
@@ -2130,6 +2130,13 @@ mod tests {
|
||||
/// `zsh_reports_the_full_prompt_cycle_over_a_real_pty` gives: the empty
|
||||
/// sentinel is what stops the injected rc guarding itself off inside a
|
||||
/// tty7 pane.
|
||||
///
|
||||
/// Worth knowing what this covers where: the rcfile installs its hook into
|
||||
/// `PROMPT_COMMAND` as an array only on bash 5.1 and up, and appends to a
|
||||
/// string below that. macOS still ships 3.2.57, so a developer run here
|
||||
/// exercises the older branch and a Linux CI runner exercises the newer
|
||||
/// one — between them both halves of that version check are run, which
|
||||
/// neither machine does alone.
|
||||
#[cfg(unix)]
|
||||
#[test]
|
||||
fn bash_reports_the_full_prompt_cycle_over_a_real_pty() {
|
||||
|
||||
Reference in New Issue
Block a user