Skip to content

Commit

Permalink
Fix the smoke test for Julia 1.6 (#16)
Browse files Browse the repository at this point in the history
Some test dependencies of an old version of InitialValues.jl used for
the smoke test are not forward compatible to Julia 1.6.
  • Loading branch information
tkf committed Jul 28, 2020
1 parent 307298f commit 7e5799d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/pkg.jl
Expand Up @@ -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)
Expand Down
7 changes: 3 additions & 4 deletions test/runtests.jl
Expand Up @@ -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"),
Expand Down

0 comments on commit 7e5799d

Please sign in to comment.