Skip to content

Commit

Permalink
Fix deprecated flag in Pkg tests. (JuliaLang#18283)
Browse files Browse the repository at this point in the history
  • Loading branch information
helgee authored and tkelman committed Aug 30, 2016
1 parent fc17a98 commit cc30dd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ temp_pkg_dir() do
touch(depsbuild)
# Pkg.build works without the src directory now
# but it's probably fine to require it.
msg = readstring(`$(Base.julia_cmd()) -f -e 'redirect_stderr(STDOUT); Pkg.build("BuildFail")'`)
msg = readstring(`$(Base.julia_cmd()) --startup-file=no -e 'redirect_stderr(STDOUT); Pkg.build("BuildFail")'`)
@test contains(msg, "Building BuildFail")
@test !contains(msg, "ERROR")
open(depsbuild, "w") do fd
println(fd, "error(\"Throw build error\")")
end
msg = readstring(`$(Base.julia_cmd()) -f -e 'redirect_stderr(STDOUT); Pkg.build("BuildFail")'`)
msg = readstring(`$(Base.julia_cmd()) --startup-file=no -e 'redirect_stderr(STDOUT); Pkg.build("BuildFail")'`)
@test contains(msg, "Building BuildFail")
@test contains(msg, "ERROR")
@test contains(msg, "Pkg.build(\"BuildFail\")")
Expand All @@ -456,7 +456,7 @@ temp_pkg_dir() do
let package = "Example"
Pkg.rm(package) # Remove package if installed
@test Pkg.installed(package) === nothing # Registered with METADATA but not installed
msg = readstring(ignorestatus(`$(Base.julia_cmd()) -f -e "redirect_stderr(STDOUT); Pkg.build(\"$package\")"`))
msg = readstring(ignorestatus(`$(Base.julia_cmd()) --startup-file=no -e "redirect_stderr(STDOUT); Pkg.build(\"$package\")"`))
@test contains(msg, "$package is not an installed package")
@test !contains(msg, "signal (15)")
end
Expand Down

0 comments on commit cc30dd1

Please sign in to comment.