summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options_map.h
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-02-15 16:02:45 +0000
committer Jiakai Zhang <jiakaiz@google.com> 2023-02-15 18:32:27 +0000
commit03baeffd503e5b2cd6ba172c27b716bf3e999e84 (patch)
treea9fb3072bed6ab8618b74a9b785f64f376bc9c36 /compiler/driver/compiler_options_map.h
parentb22e708890b61e6a82bb8a18e98413c2bd4933c9 (diff)
Restore the test state before every test in OdrefreshHostTest.
To save time, we don't run odrefresh before every test to reset the test state. Therefore, the test state can leak from one test to another. This used to be fine because it used to be the case that all the tests ended in a clean state, where the artifacts all exist and are up-to-date. However, this is no longer true since aosp/2366494, which introduced a test that ends in the state where the artifacts are in "verify" rather than the normal "speed-profile" filter, causing any test the runs after it to fail. It's possible to fix that test, but the pitfall that every test has to end in a clean state will remain. Instead of doing this, this change added code to backup the artifacts and restore them before every test to make sure every test starts in a clean state. Bug: 269223220 Test: atest odsign_e2e_tests_full:OdrefreshHostTest Change-Id: I7ccd6ae56c7c802d9278fad89e196d640bae8c90
Diffstat (limited to 'compiler/driver/compiler_options_map.h')
0 files changed, 0 insertions, 0 deletions