Skip to content

Commit

Permalink
Update formating test/cmdlineargs.jl
Browse files Browse the repository at this point in the history
Co-Authored-By: Fredrik Ekre <[email protected]>
  • Loading branch information
Moelf committed May 31, 2019
1 parent 08afd4d commit f7a5d8a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ let exename = `$(Base.julia_cmd()) --startup-file=no`
@test startswith(read(`$exename --help`, String), header)
end

# --project
let expanded = abspath(expanduser("~/foo"))
if(!Sys.iswindows())
@test occursin(expanded, readchomp(`$exename --project='~/foo' -E 'Base.active_project()'`))
@test occursin(expanded, readchomp(setenv(`$exename -E 'Base.active_project()'`, "JULIA_PROJECT"=>"~/foo")))
end
# ~ expansion in --project and JULIA_PROJECT
if !Sys.iswindows()
expanded = abspath(expanduser("~/foo"))
@test occursin(expanded, readchomp(`$exename --project='~/foo' -E 'Base.active_project()'`))
@test occursin(expanded, readchomp(setenv(`$exename -E 'Base.active_project()'`, "JULIA_PROJECT"=>"~/foo")))
end

# --quiet, --banner
Expand Down

0 comments on commit f7a5d8a

Please sign in to comment.