Skip to content

Commit

Permalink
Fix precompile script (#1211)
Browse files Browse the repository at this point in the history
Taken out of #1204 whilst that is on hold.

The directories changed in #1021, causing our precompile run to return
error code 1 with a "TOML not found error". That means we were not
precompiling an actual run and therefore probably need to wait a bit
longer before the start of a simulation. This fixes the directory and
adds an assertion to make sure the simulation is successful.
  • Loading branch information
visr authored Mar 5, 2024
1 parent b773aac commit 1fb4ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

using Ribasim

toml_path = normpath(@__DIR__, "../../generated_testmodels/basic/ribasim.toml")
Ribasim.main(toml_path)
toml_path = normpath(@__DIR__, "../generated_testmodels/basic/ribasim.toml")
@assert Ribasim.main(toml_path) == 0

0 comments on commit 1fb4ca8

Please sign in to comment.