Skip to content

Commit

Permalink
Pkg3: deterministically close the LibGit2 repo in tests (#26883)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Apr 23, 2018
1 parent de705f3 commit 22ded18
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions stdlib/Pkg3/test/pkg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,14 @@ temp_pkg_dir() do project_path

@testset "legacy CI script" begin
mktempdir() do dir
LibGit2.clone("https://github.com/JuliaLang/Example.jl", joinpath(dir, "Example.jl"))
cd(joinpath(dir, "Example.jl")) do
let Pkg = Pkg3
Pkg.clone(pwd())
Pkg.build("Example")
Pkg.test("Example"; coverage=true)
@test isfile(Pkg.dir("Example", "src", "Example.jl"))
LibGit2.with(LibGit2.clone("https://github.com/JuliaLang/Example.jl", joinpath(dir, "Example.jl"))) do r
cd(joinpath(dir, "Example.jl")) do
let Pkg = Pkg3
Pkg.clone(pwd())
Pkg.build("Example")
Pkg.test("Example"; coverage=true)
@test isfile(Pkg.dir("Example", "src", "Example.jl"))
end
end
end
end
Expand Down

0 comments on commit 22ded18

Please sign in to comment.