Skip to content

Commit

Permalink
Made serialization tests run with --run-mode=init since they test eve…
Browse files Browse the repository at this point in the history
…rything during the construct phase. This will test that --run-mode=init operates correctly.
  • Loading branch information
feldergast committed Jun 10, 2024
1 parent bf84cb2 commit ac168c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/refFiles/test_Serialization_componentinfo.out
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ id = 0, name = top_component, slot_name = NONE, defaultTimeBase = 500
id = 2, name = subcomp1_0, slot_name = slot0, defaultTimeBase = 1000, parent_id = 1
id = 3, name = subcomp1_1, slot_name = slot1, defaultTimeBase = 2000, parent_id = 1
id = 4, name = subcomp0_1, slot_name = slot1, parent_id = 0
Simulation is complete, simulated time: 1 us
Simulation is complete, simulated time: 0 s
2 changes: 1 addition & 1 deletion tests/refFiles/test_Serialization_default.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
WARNING: Building component "Component0" with no links assigned.
Simulation is complete, simulated time: 1 us
Simulation is complete, simulated time: 0 s
2 changes: 1 addition & 1 deletion tests/refFiles/test_Serialization_handler.out
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ metadata value: 8.9
internal value: 73
parameter value: 17
metadata value: 8.9
Simulation is complete, simulated time: 1 us
Simulation is complete, simulated time: 0 s
2 changes: 1 addition & 1 deletion tests/testsuite_default_Serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def serialization_test_template(self, testtype, default_reffile = True):

outfile = "{0}/test_Serialization_{1}.out".format(outdir,testtype)

options = "--model-options=\"{0}\"".format(testtype)
options = "--run-mode=init --model-options=\"{0}\"".format(testtype)
# Force serial run since the serialization is all done in-situ
self.run_sst(sdlfile, outfile, num_ranks=1, num_threads=1, other_args=options)

Expand Down

0 comments on commit ac168c5

Please sign in to comment.