Skip to content

Commit

Permalink
Merge pull request JuliaLang#7970 from jakebolewski/jcb/fixtestreq
Browse files Browse the repository at this point in the history
fix packages being uninstalled / reinstalled when running Pkg.test  with REQUIRES
  • Loading branch information
staticfloat committed Aug 12, 2014
2 parents 3d68c58 + 8a7f13b commit 6a8039a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/pkg/entry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -667,15 +667,15 @@ function updatehook(pkgs::Vector)
end

function test!(pkg::String, errs::Vector{String}, notests::Vector{String}; coverage::Bool=false)
const reqs_path = abspath(pkg,"test","REQUIRE")
reqs_path = abspath(pkg,"test","REQUIRE")
if isfile(reqs_path)
const tests_require = Reqs.parse(reqs_path)
tests_require = Reqs.parse(reqs_path)
if (!isempty(tests_require))
info("Computing test dependencies for $pkg...")
resolve(tests_require)
resolve(merge(Reqs.parse("REQUIRE"), tests_require))
end
end
const test_path = abspath(pkg,"test","runtests.jl")
test_path = abspath(pkg,"test","runtests.jl")
if isfile(test_path)
info("Testing $pkg")
cd(dirname(test_path)) do
Expand Down

0 comments on commit 6a8039a

Please sign in to comment.