mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
nushell should be non-interactive if --testbin
is supplied (#9730)
# Description After #9693, tests will stop and go into the background if run locally in bash, since nushell is being run in interactive mode even though `--testbin` is supplied. This makes nushell run in non-interactive mode if `--testbin` is supplied.
This commit is contained in:
parent
1ba2269aa9
commit
17caa31325
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
// keep this condition in sync with the branches at the end
|
// keep this condition in sync with the branches at the end
|
||||||
engine_state.is_interactive = parsed_nu_cli_args.interactive_shell.is_some()
|
engine_state.is_interactive = parsed_nu_cli_args.interactive_shell.is_some()
|
||||||
|| (parsed_nu_cli_args.commands.is_none() && script_name.is_empty());
|
|| (parsed_nu_cli_args.testbin.is_none()
|
||||||
|
&& parsed_nu_cli_args.commands.is_none()
|
||||||
|
&& script_name.is_empty());
|
||||||
|
|
||||||
engine_state.is_login = parsed_nu_cli_args.login_shell.is_some();
|
engine_state.is_login = parsed_nu_cli_args.login_shell.is_some();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue