Skip to content

Commit

Permalink
Fix env var check
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis committed Aug 9, 2023
1 parent ca14544 commit ce1a02a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ using Preferences
using UUIDs

# Test Float32 value for int2float
env_int2float = ENV["INT2FLOAT"]
if "INT2FLOAT" keys(ENV) && env_int2float ["Float32", "Float16"]

if "INT2FLOAT" keys(ENV)
env_int2float = ENV["INT2FLOAT"]
end

if env_int2float ["Float32", "Float16"]
chainrulescore_uuid = UUID("d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4")
set_preferences!(chainrulescore_uuid, "int2float" => env_int2float)
println("")
Expand Down

0 comments on commit ce1a02a

Please sign in to comment.