@@ -49,10 +49,18 @@ two_steps["dt_rad"] = "180secs"
4949two_steps[" checkpoint_dt" ] = " 360secs"
5050two_steps[" coupler_output_dir" ] = tmpdir
5151two_steps[" job_id" ] = " two_steps"
52+ two_steps[" save_cache" ] = false
5253
5354println (" Simulating two steps" )
5455cs_two_steps = setup_and_run (two_steps)
5556
57+ @testset " Cache files should not exist" begin
58+ checkpoints_dir = joinpath (tmpdir, two_steps[" job_id" ], " checkpoints" )
59+ checkpoint_files = filter! (isfile, readdir (checkpoints_dir, join = true ))
60+ are_not_cache_files = .! occursin .(" cache" , basename .(checkpoint_files))
61+ @test all (are_not_cache_files)
62+ end
63+
5664# Check that we can pick up a simulation by providing t_restart and restart_dir
5765println (" Simulating two steps, options from command line" )
5866two_steps_reading = deepcopy (two_steps)
@@ -63,6 +71,7 @@ two_steps_reading["restart_dir"] = cs_two_steps.dir_paths.checkpoints_dir
6371two_steps_reading[" restart_t" ] = 360
6472two_steps_reading[" restart_cache" ] = false
6573two_steps_reading[" job_id" ] = " two_steps_reading"
74+ two_steps_reading[" save_cache" ] = false
6675
6776cs_two_steps_reading = setup_and_run (two_steps_reading)
6877@testset " Restarts from command line arguments" begin
0 commit comments