Skip to content

Commit

Permalink
allow for local testing by first using set_bart_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobAsslaender committed Dec 1, 2022
1 parent 2cf9c91 commit a511c11
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/testIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
end

@testset "BART" begin
if Sys.isapple()
pathtobart = "/Users/runner/work/BartIO.jl/BartIO.jl/bart"
else
pathtobart = "/home/runner/work/BartIO.jl/BartIO.jl/bart"
if isempty(ENV["TOOLBOX_PATH"])
pathtobart = Sys.isapple() ? "/Users" : "/home"
pathtobart *= "/runner/work/BartIO.jl/BartIO.jl/bart"
set_bart_path(pathtobart)
end
set_bart_path(pathtobart)
bart(0, "version")

phant = bart(1, "phantom")
Expand Down

0 comments on commit a511c11

Please sign in to comment.