Skip to content

Commit 152b3b2

Browse files
committed
oops
1 parent 5854e38 commit 152b3b2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/runtests.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ union!(JuliaInterpreter.compiled_modules, Any[Base, Base.Broadcast, Compat, Line
2323
Random.seed!(1) # Set seed that all testsets should reset to.
2424

2525
function include_test(path)
26-
if isempty(ARGS) || any(occursin(a, w) for w in split(path, '/'), a in ARGS)
26+
if isempty(ARGS) || any(occursin(a, path) for a in ARGS)
2727
println("Testing $path:") # print so TravisCI doesn't timeout due to no output
28-
@time include(path) # show basic timing, (this will print a newline at end)
28+
@time Base.include(@__MODULE__(), path) do ex
29+
Meta.isexpr(ex, :macrocall) && ex.args[1] == Symbol("@testset") || return ex
30+
return :(@interpret (() -> $ex)()) # interpret testsets using JuliaInterpreter
31+
end
2932
else
3033
# If you provide ARGS like so, then it runs only matching testsets:
3134
# Pkg.test("ChainRules", test_args = ["index", "LinearAlgebra"])

0 commit comments

Comments
 (0)