From 8a77d1ed92be5296bd76ea21c021b29d5c7b16c0 Mon Sep 17 00:00:00 2001 From: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:12:19 +0200 Subject: [PATCH] Let `run_in_login_mode` succeed even with broken local config (#10622) I wondered why this test failed for me. Turns out my config file is not compatible with current main, but the error message was useless. I've added `--no-config-file` --- tests/shell/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shell/mod.rs b/tests/shell/mod.rs index 5a78f5eedd..596314d14c 100644 --- a/tests/shell/mod.rs +++ b/tests/shell/mod.rs @@ -234,7 +234,7 @@ fn run_in_login_mode() { let child_output = std::process::Command::new("sh") .arg("-c") .arg(format!( - "{:?} -l -c 'echo $nu.is-login'", + "{:?} --no-config-file --login --commands 'echo $nu.is-login'", nu_test_support::fs::executable_path() )) .output()