Fix broken test
The assertion here is just wrong. In setup we install a new ART APEX
and reboot, which will recompile both Zygote and System Server
artifacts.
Then the test marks a different APEX as updated and triggers
recompilation, which should only affect System Server artifacts,
precisely because --compilation-os-mode no longer does a
force-compile.
This new version is exactly what Jiakai said I should do
(https://r.android.com/c/platform/art/+/1964960/1..4//COMMIT_MSG#b21,
https://r.android.com/1964844), but somehow I managed to convince
myself to do the wrong thing instead.
Bug: 217446385
Bug: 211458160
Test: atest OdrefreshHostTest#verifyCompilationOsMode
Change-Id: I10cac92c6abf4eead1f25a85a15de271dccfd78c
diff --git a/test/odsign/test-src/com/android/tests/odsign/OdrefreshHostTest.java b/test/odsign/test-src/com/android/tests/odsign/OdrefreshHostTest.java
index 7cd6e37..c53cead 100644
--- a/test/odsign/test-src/com/android/tests/odsign/OdrefreshHostTest.java
+++ b/test/odsign/test-src/com/android/tests/odsign/OdrefreshHostTest.java
@@ -187,7 +187,7 @@
ODREFRESH_BIN + " --no-refresh --partial-compilation"
+ " --compilation-os-mode --compile");
- assertArtifactsModifiedAfter(getZygoteArtifacts(), timeMs);
+ assertArtifactsNotModifiedAfter(getZygoteArtifacts(), timeMs);
assertArtifactsModifiedAfter(getSystemServerArtifacts(), timeMs);
String cacheInfo = getDevice().pullFileContents(CACHE_INFO_FILE);