From d2b355691443fb0bb79d3f98a1a5005c5b6cd0fc Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:11:37 -0400 Subject: [PATCH] Attempt to fix Windows paths in CI --- tests/repl/test_stdlib.rs | 2 +- tests/shell/environment/env.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/repl/test_stdlib.rs b/tests/repl/test_stdlib.rs index b15a10dd22..71188e4053 100644 --- a/tests/repl/test_stdlib.rs +++ b/tests/repl/test_stdlib.rs @@ -7,5 +7,5 @@ fn not_loaded() -> TestResult { #[test] fn use_command() -> TestResult { - run_test_std("use std/assert; assert true; print 'it works'", "it works") + run_test_std("use ([ std, assert ] | path join); assert true; print 'it works'", "it works") } diff --git a/tests/shell/environment/env.rs b/tests/shell/environment/env.rs index 35692fdee9..a78f4594b5 100644 --- a/tests/shell/environment/env.rs +++ b/tests/shell/environment/env.rs @@ -224,7 +224,7 @@ fn std_log_env_vars_are_not_overridden() { ("NU_LOG_DATE_FORMAT".to_string(), "%Y".to_string()), ], r#" - use std/log + use ([ std, log] | path join) print -e $env.NU_LOG_FORMAT print -e $env.NU_LOG_DATE_FORMAT log error "err" @@ -237,7 +237,7 @@ fn std_log_env_vars_are_not_overridden() { fn std_log_env_vars_have_defaults() { let actual = nu_with_std!( r#" - use std/log + use ([ std, log] | path join) print -e $env.NU_LOG_FORMAT print -e $env.NU_LOG_DATE_FORMAT "#