Skip to content

Commit

Permalink
Fi
Browse files Browse the repository at this point in the history
  • Loading branch information
ilopezgp committed May 26, 2022
1 parent ad35d00 commit 1bb9440
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ steps:
artifact_paths: "Output.Bomex.01_NN/stats/comparison/*"

- label: ":partly_sunny: Bomex with FNO"
command: "julia --color=yes --project=integration_tests integration_tests/driver.jl --case Bomex --entr FNO --skip_tests true --suffix _FNO"
command: "julia --color=yes --project=integration_tests integration_tests/driver.jl --case Bomex --entr FNO --skip_tests true --broken_tests true --suffix _FNO"
artifact_paths: "Output.Bomex.01_FNO/stats/comparison/*"

- label: ":partly_sunny: Bomex with RF"
Expand Down
3 changes: 3 additions & 0 deletions integration_tests/cli_options.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ function parse_commandline()
"--skip_tests" # Skip regression tests
arg_type = Bool
default = false
"--broken_tests" # Tests are broken, skip tests
arg_type = Bool
default = false
"--suffix" # A suffix for the artifact folder
arg_type = String
default = ""
Expand Down
17 changes: 10 additions & 7 deletions integration_tests/driver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ no_overwrites = (
"case", # default_namelist already overwrites namelist["meta"]["casename"]
"skip_post_proc",
"skip_tests",
"broken_tests",
"trunc_field_type_print",
"suffix",
)
Expand Down Expand Up @@ -82,6 +83,15 @@ end

ds_tc_filename, return_code = main(namelist)

parsed_args["broken_tests"] && exit()

@testset "Simulation completion" begin
# Test that the simulation has actually finished,
# and not aborted early.
@test !(return_code == :simulation_aborted)
@test return_code == :success
end

# Post-processing case kwargs
include(joinpath(tc_dir, "post_processing", "case_kwargs.jl"))
include(joinpath(tc_dir, "post_processing", "compute_mse.jl"))
Expand Down Expand Up @@ -124,13 +134,6 @@ end
end
nothing
end

@testset "Simulation completion" begin
# Test that the simulation has actually finished,
# and not aborted early.
@test !(return_code == :simulation_aborted)
@test return_code == :success
end
nothing
end

Expand Down

0 comments on commit 1bb9440

Please sign in to comment.