T23: the shell tests type a line only once the line editor reads raw keys: on CI's pwsh 7.6.6 the probe, typed right after the first folder report, came before PSReadLine's first read and was echoed, never run; shot warns when the app it runs under lacks Screen Recording, which left this Mac's pictures with the window's ground alone; AGENTS.md records the CI runners, the build without debuginfo and the typing rule
CI / platforms (ubuntu-24.04) (push) Successful in 1m14s
CI / platforms (windows-latest) (push) Successful in 2m23s
CI / macos (push) Successful in 10m26s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-15 13:50:09 -04:00
1 parent de48f491bc
commit be8d0e20c5
5 files changed
+37 -4

No files matched your search

+4 -2
View File
@@ -108,7 +108,9 @@ impl Run {
}
}
fn send(&self, line: &str) {
/// Types `line` at a prompt, once its line editor reads raw keys.
fn send(&mut self, line: &str) {
self.until("line editor", |run| run.pty.reads_keys());
self.pty.write(format!("{line}\r").into_bytes());
}
@@ -131,9 +133,9 @@ impl Run {
/// The prompt's folder, the script loaded by `probe`, then a cd into the inner folder.
fn walk(&mut self, probe: &str) {
let start = self.start.clone();
self.send(probe);
self.until("first folder", |run| run.folders.contains(&start));
assert_eq!(self.folders[0], start);
self.send(probe);
self.until("loaded script", |run| run.shows("ELY-LOADED"));
self.send("cd in*");
let inner = start.join(INNER);