commit | 91f8f2b276bf0a4ef03963822dbcbadd6a657d2e | [log] [tgz] |
---|---|---|
author | Bobby R. Bruce <bbruce@ucdavis.edu> | Fri Dec 02 11:15:45 2022 -0800 |
committer | Bobby Bruce <bbruce@ucdavis.edu> | Tue Dec 13 00:20:13 2022 +0000 |
tree | d7c1f997e3194f05cd6a8c4ae129b6fd29b2b8b4 | |
parent | 1b2252cbc0dbd2473f0e106775419dd8b87992f9 [diff] |
tests: Add missing `_pre_instantiate()` As of this change: https://gem5-review.googlesource.com/c/public/gem5/+/65051, the `_pre_instantiate` function must be called prior to `m5.instantiate` when using the stdlib without the Simulator module. The "test/gem5/replacement-policies/run_replacement_policy_test.py" lacked this and was causing errors when running replacement policy tests. In addition we also fix the incorrect type of size in`createArtifact'. This was causing problems with the Kokoro build system. The typing here was `int` but had a default value of `None`. The correct type is therefore `Optional[int]`. Change-Id: Ibaf63151196b15f68e643fa5c1b290439d6618c8 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/66371 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu> (cherry picked from commit a3fd9631cc209914fad2e2c1fb24006d6d5adc2d) Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/66613