Skip to content

Commit 72459f4

Browse files
committed
Use DEPOT_PATH instead of HOME in cmdlineargs test
1 parent b3eaa34 commit 72459f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cmdlineargs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
459459
mkpath(joinpath(dir, ".julia", "config"))
460460
cp(testfile, joinpath(dir, ".julia", "config", "startup.jl"))
461461

462-
withenv((Sys.iswindows() ? "USERPROFILE" : "HOME") => dir) do
462+
withenv("JULIA_DEPOT_PATH" => dir) do
463463
output = "[\"foo\", \"-bar\", \"--baz\"]"
464464
@test readchomp(`$exename $testfile foo -bar --baz`) == output
465465
@test readchomp(`$exename $testfile -- foo -bar --baz`) == output
@@ -501,7 +501,7 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
501501

502502
readsplit(cmd) = split(readchomp(cmd), '\n')
503503

504-
withenv((Sys.iswindows() ? "USERPROFILE" : "HOME") => dir) do
504+
withenv("JULIA_DEPOT_PATH" => dir) do
505505
@test readsplit(`$exename $a`) ==
506506
[a, a,
507507
b, a]

0 commit comments

Comments
 (0)