Skip to content

Commit c661a83

Browse files
committed
Fix test for windows
1 parent 367728c commit c661a83

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/runtests.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ cd("..")
2020
println("Running tests...")
2121
@testset verbose = true "Testing VortexStepMethod..." begin
2222

23-
cp("data/ram_air_kite_body.obj", "/tmp/ram_air_kite_body.obj"; force=true)
24-
cp("data/ram_air_kite_foil.dat", "/tmp/ram_air_kite_foil.dat"; force=true)
25-
ram_wing = RamAirWing("/tmp/ram_air_kite_body.obj", "/tmp/ram_air_kite_foil.dat"; alpha_range=deg2rad.(-1:1), delta_range=deg2rad.(-1:1))
23+
body_path = joinpath(tempdir(), "ram_air_kite_body.obj")
24+
foil_path = joinpath(tempdir(), "ram_air_kite_foil.dat")
25+
cp("data/ram_air_kite_body.obj", body_path; force=true)
26+
cp("data/ram_air_kite_foil.dat", foil_path; force=true)
27+
ram_wing = RamAirWing(body_path, foil_path; alpha_range=deg2rad.(-1:1), delta_range=deg2rad.(-1:1))
2628

2729
if build_is_production_build
2830
include("bench.jl")

0 commit comments

Comments
 (0)