Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sloede committed Sep 16, 2021
1 parent 2a35a29 commit 59facea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Expand Up @@ -3,16 +3,16 @@ using SmartShockFinder

EXAMPLES_DIR = joinpath(pathof(SmartShockFinder) |> dirname |> dirname, "examples")

@test_nowarn rm(joinpath("datasets"), recursive=true)
@test_nowarn rm(joinpath("datasets"), recursive=true, force=true)

@time @testset "SmartShockFinder" begin
@test_nowarn mkpath(joinpath("datasets", "1d"))

@testset "examples/1d/traindata_NNPPh.jl" begin
@test_nowarn include(joinpath("examples", "1d", "traindata_NNPPh.jl"))
@test_nowarn include(joinpath(EXAMPLES_DIR, "1d", "traindata_NNPPh.jl"))

@test isfile(joinpath("datasets", "1d", "traindata1dNNPPh.h5"))
end
end

@test_nowarn rm(joinpath("datasets"), recursive=true)
@test_nowarn rm(joinpath("datasets"), recursive=true, force=true)

0 comments on commit 59facea

Please sign in to comment.