Skip to content

Commit bbddeb6

Browse files
Add an inner testsets to help find failures (#754)
1 parent 8d71b02 commit bbddeb6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/runtests.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if haskey(ENV, "CI")
1818
end
1919

2020
@testset "PackageCompiler.jl" begin
21+
@testset "create_sysimage" begin
2122
new_project = mktempdir()
2223
old_project = Base.ACTIVE_PROJECT[]
2324
Base.ACTIVE_PROJECT[] = new_project
@@ -48,17 +49,19 @@ end
4849
@test occursin("Hello, foo", str)
4950
@test occursin("I am a script", str)
5051
@test occursin("opt: -O1", str)
52+
end # testset
5153

54+
@testset "create_app" begin
5255
# Test creating an app
5356
app_source_dir = joinpath(@__DIR__, "..", "examples/MyApp/")
5457
app_compiled_dir = joinpath(tmp, "MyAppCompiled")
55-
for incremental in (is_slow_ci ? (false,) : (true, false))
58+
@testset for incremental in (is_slow_ci ? (false,) : (true, false))
5659
if incremental == false
5760
filter_stdlibs = (is_slow_ci ? (true, ) : (true, false))
5861
else
5962
filter_stdlibs = (false,)
6063
end
61-
for filter in filter_stdlibs
64+
@testset for filter in filter_stdlibs
6265
tmp_app_source_dir = joinpath(tmp, "MyApp")
6366
cp(app_source_dir, tmp_app_source_dir)
6467
create_app(tmp_app_source_dir, app_compiled_dir; incremental=incremental, force=true, filter_stdlibs=filter, include_lazy_artifacts=true,
@@ -137,6 +140,7 @@ end
137140
@test p.exitcode == 1
138141
end
139142
end
143+
end # testset
140144

141145
if !is_slow_ci
142146
# Test library creation

0 commit comments

Comments
 (0)