Re-enable test on MacOS
This commit is contained in:
parent
3b59407cfb
commit
5ae2665bb4
|
@ -10,8 +10,10 @@
|
||||||
//! will create one for you with sensible defaults.
|
//! will create one for you with sensible defaults.
|
||||||
//!
|
//!
|
||||||
//! Step 2: Create a PTY and spawn a Nushell process to the slave end.
|
//! Step 2: Create a PTY and spawn a Nushell process to the slave end.
|
||||||
//! `pty_with_nushell()` will do that for you. It's probably a good idea to pass
|
//! `pty_with_nushell()` will do that for you. Here you can set PWD or pass
|
||||||
//! `--no-config-file` as argument to Nushell.
|
//! command line arguments to Nushell. It's always a good idea to pass
|
||||||
|
//! `--no-config-file`, otherwise Nushell will ask if you want to create one
|
||||||
|
//! with default, and that messes up the input.
|
||||||
//!
|
//!
|
||||||
//! Step 3: Wait for Nushell to initialize (sleeping for 500ms should do). On
|
//! Step 3: Wait for Nushell to initialize (sleeping for 500ms should do). On
|
||||||
//! Linux, trying to write to the PTY before Nushell finishes initialization
|
//! Linux, trying to write to the PTY before Nushell finishes initialization
|
||||||
|
|
|
@ -14,5 +14,4 @@ mod plugins;
|
||||||
mod repl;
|
mod repl;
|
||||||
mod scope;
|
mod scope;
|
||||||
mod shell;
|
mod shell;
|
||||||
#[cfg(not(target_os = "macos"))]
|
|
||||||
mod terminal;
|
mod terminal;
|
||||||
|
|
|
@ -79,8 +79,5 @@ fn command_hints_are_pwd_aware() {
|
||||||
// Examine the terminal state.
|
// Examine the terminal state.
|
||||||
let (row, _col) = extract_cursor(&term);
|
let (row, _col) = extract_cursor(&term);
|
||||||
let text = extract_text(&term);
|
let text = extract_text(&term);
|
||||||
for line in &text {
|
|
||||||
println!("{}", line);
|
|
||||||
}
|
|
||||||
assert!(text[row - 2].contains("print 'FOO'"));
|
assert!(text[row - 2].contains("print 'FOO'"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user