Skip to content

Commit 586c3c1

Browse files
authored
don't assume julia is on the path (#123)
* don't assume julia is on the path or that the package is installed under Pkg.dir * squash this
1 parent 0419bf3 commit 586c3c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#######################################################################
22
# Coverage.jl
33
# Take Julia test coverage results and bundle them up in JSONs
4-
# https://github.com/IainNZ/Coverage.jl
4+
# https://github.com/JuliaCI/Coverage.jl
55
#######################################################################
66

77
using Coverage, Base.Test, Compat
@@ -24,7 +24,7 @@ using Compat.String
2424
@test Coverage.iscovfile("/somedir/test.jl.8392.cov", "/somedir/test.jl")
2525
@test !Coverage.iscovfile("/otherdir/test.jl.cov", "/somedir/test.jl")
2626

27-
cd(Pkg.dir("Coverage")) do
27+
cd(dirname(@__DIR__)) do
2828
datadir = joinpath("test", "data")
2929
# Process a saved set of coverage data...
3030
r = process_file(joinpath(datadir,"Coverage.jl"))
@@ -44,7 +44,7 @@ cd(Pkg.dir("Coverage")) do
4444
# need to preserve the pre-baked coverage file Coverage.jl.cov
4545
clean_file(srcname)
4646
cmdstr = "include(\"$srcname\"); using Base.Test; @test f2(2) == 4"
47-
run(`julia --code-coverage=user -e $cmdstr`)
47+
run(`$JULIA_HOME/julia --code-coverage=user -e $cmdstr`)
4848
r = process_file(srcname, datadir)
4949
# The next one is the correct one, but julia & JuliaParser don't insert a line number after the 1-line @doc -> test
5050
# See https://github.com/JuliaLang/julia/issues/9663 (when this is fixed, can uncomment the next line on julia 0.4)

0 commit comments

Comments
 (0)