diff --git a/src/pkg.jl b/src/pkg.jl index f869d16..99ef7a5 100644 --- a/src/pkg.jl +++ b/src/pkg.jl @@ -32,7 +32,10 @@ function test(spec::_PackageSpec; kwargs...) end @info "Testing $spec..." - return test(testpath; kwargs...) + # `cd` so that `project="test/environments/main"` works + cd(dirname(testpath)) do + return test(testpath; kwargs...) + end end function copymanifest(oldpath::AbstractString, newpath::AbstractString) diff --git a/test/runtests.jl b/test/runtests.jl index 8f62315..30ad7b9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -67,11 +67,10 @@ end pkgspec = PackageSpec( name = "InitialValues", - url = "https://github.com/tkf/InitialValues.jl", - rev = "62b240fb85836b9731b0a893e446a9c90311afce", + rev = "65ebf60fd37f975802c16511a04808f658a960ff", # v0.2.9 ) - @test Run.test(pkgspec) isa Any - @test Run.test(pkgspec; inline=false) isa Any + @test Run.test(pkgspec; project="test/environments/main") isa Any + @test Run.test(pkgspec; project="test/environments/main", inline=false) isa Any pkgid = Base.PkgId( Base.UUID("22cec73e-a1b8-11e9-2c92-598750a2cf9c"),