mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
avoid freeze for table print (#6688)
* avoid freeze for table print * make failed_with_proper_exit_code work again * add test case for table * fix un-used import on windows
This commit is contained in:
@ -314,11 +314,10 @@ mod nu_commands {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "For now we have no way to check LAST_EXIT_CODE in tests, ignore it for now"]
|
||||
fn failed_with_proper_exit_code() {
|
||||
Playground::setup("external failed", |dirs, _sandbox| {
|
||||
let actual = nu!(cwd: dirs.test(), r#"
|
||||
nu -c "cargo build; print $env.LAST_EXIT_CODE"
|
||||
nu -c "cargo build | complete | get exit_code"
|
||||
"#);
|
||||
|
||||
// cargo for non rust project's exit code is 101.
|
||||
|
Reference in New Issue
Block a user