From 09407d975595d29bbcdeefc522b7cfb21a6bbdcb Mon Sep 17 00:00:00 2001 From: Daniel Ingraham Date: Wed, 7 Aug 2024 12:20:49 -0400 Subject: [PATCH] Disable checking pvd files on Windows --- test/writevtk_tests.jl | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/test/writevtk_tests.jl b/test/writevtk_tests.jl index 73e11260..7f100c91 100644 --- a/test/writevtk_tests.jl +++ b/test/writevtk_tests.jl @@ -32,10 +32,12 @@ end @test sha_str == sha_str_check end - fname = "$(name).pvd" - sha_str = bytes2hex(open(sha1, fname)) - sha_str_check = bytes2hex(open(sha1, joinpath(@__DIR__, "writevtk", fname))) - @test sha_str == sha_str_check + if !Sys.iswindows() + fname = "$(name).pvd" + sha_str = bytes2hex(open(sha1, fname)) + sha_str_check = bytes2hex(open(sha1, joinpath(@__DIR__, "writevtk", fname))) + @test sha_str == sha_str_check + end end @@ -76,10 +78,12 @@ end end - fname = "$(name).pvd" - sha_str = bytes2hex(open(sha1, fname)) - sha_str_check = bytes2hex(open(sha1, joinpath(@__DIR__, "writevtk", fname))) - @test sha_str == sha_str_check + if !Sys.iswindows() + fname = "$(name).pvd" + sha_str = bytes2hex(open(sha1, fname)) + sha_str_check = bytes2hex(open(sha1, joinpath(@__DIR__, "writevtk", fname))) + @test sha_str == sha_str_check + end end @@ -124,10 +128,12 @@ end end - fname = "$(name).pvd" - sha_str = bytes2hex(open(sha1, fname)) - sha_str_check = bytes2hex(open(sha1, joinpath(@__DIR__, "writevtk", fname))) - @test sha_str == sha_str_check + if !Sys.iswindows() + fname = "$(name).pvd" + sha_str = bytes2hex(open(sha1, fname)) + sha_str_check = bytes2hex(open(sha1, joinpath(@__DIR__, "writevtk", fname))) + @test sha_str == sha_str_check + end end