Attempt to fix Windows paths in CI

This commit is contained in:
NotTheDr01ds 2024-09-23 22:11:37 -04:00
parent d5ac168578
commit d2b3556914
2 changed files with 3 additions and 3 deletions

View File

@ -7,5 +7,5 @@ fn not_loaded() -> TestResult {
#[test] #[test]
fn use_command() -> TestResult { 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")
} }

View File

@ -224,7 +224,7 @@ fn std_log_env_vars_are_not_overridden() {
("NU_LOG_DATE_FORMAT".to_string(), "%Y".to_string()), ("NU_LOG_DATE_FORMAT".to_string(), "%Y".to_string()),
], ],
r#" r#"
use std/log use ([ std, log] | path join)
print -e $env.NU_LOG_FORMAT print -e $env.NU_LOG_FORMAT
print -e $env.NU_LOG_DATE_FORMAT print -e $env.NU_LOG_DATE_FORMAT
log error "err" log error "err"
@ -237,7 +237,7 @@ fn std_log_env_vars_are_not_overridden() {
fn std_log_env_vars_have_defaults() { fn std_log_env_vars_have_defaults() {
let actual = nu_with_std!( let actual = nu_with_std!(
r#" r#"
use std/log use ([ std, log] | path join)
print -e $env.NU_LOG_FORMAT print -e $env.NU_LOG_FORMAT
print -e $env.NU_LOG_DATE_FORMAT print -e $env.NU_LOG_DATE_FORMAT
"# "#