Skip to content

Commit

Permalink
drop mktmpdir
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Mar 15, 2022
1 parent 42a69c5 commit b743f1c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,13 @@ end
@testset "savefig" begin
using CairoMakie
r = load_monitoring_results(joinpath(@__DIR__, "test.h5"))
cd(mktempdir()) do
@test isnothing(savefig_monitoring_results(r))
@test isnothing(
savefig_monitoring_results(r, (:compute, :mem))
)
@test isnothing(savefig_monitoring_results(r; ext=:png))
@test isnothing(savefig_monitoring_results(r; ext=:pdf))
end
@test isnothing(savefig_monitoring_results(r))
@test isnothing(
savefig_monitoring_results(r, (:compute, :mem))
)
@test isnothing(savefig_monitoring_results(r; ext=:png))
@test isnothing(savefig_monitoring_results(r; ext=:pdf))
rm.(filter(endswith(".pdf"), readdir())) # cleanup
end
end
end
Expand Down

2 comments on commit b743f1c

@carstenbauer
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/56648

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.0 -m "<description of version>" b743f1c6e027bfe4e49b04e24a176701766df7a7
git push origin v0.2.0

Please sign in to comment.