From d0d72242cb731b1eafbd87290cb96a46fd03d9f5 Mon Sep 17 00:00:00 2001 From: yha Date: Sun, 8 Mar 2020 18:24:39 +0200 Subject: [PATCH] Allow image comparison tests on Windows. --- test/runtests.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 037f7653..5ddc6818 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -42,7 +42,7 @@ include("imgcomp.jl") Random.seed!(1234) default(show=false, reuse=true) is_ci() = get(ENV, "CI", "false") == "true" -img_tol = is_ci() ? 1e-2 : 1e-3 +img_tol = is_ci() ? 1e-2 : Sys.islinux() ? 1e-3 : 0.1 ## Uncomment the following lines to update reference images for different backends @@ -76,7 +76,9 @@ end @test gr() == Plots.GRBackend() @test backend() == Plots.GRBackend() - @static if Sys.islinux() + @static if haskey(ENV, "APPVEYOR") + @info "Skipping GR image comparison tests on AppVeyor" + else image_comparison_facts(:gr, tol=img_tol, skip = Plots._backend_skips[:gr]) end end