diff options
author | 2023-12-11 15:18:29 -0700 | |
---|---|---|
committer | 2023-12-12 09:52:59 -0700 | |
commit | 06e55aba3bc1eb7b0ea88f62d3b393e143dfb155 (patch) | |
tree | a898b091c8aa49cb1fa3a73bed4c0e8abd67827b /ravenwood/junit-stub-src | |
parent | 1772ec3a40cf6d49afc494cbef414cd2cb9836c5 (diff) |
Support "probing" ignored tests; more Parcel impl.
As test authors onboard their bivalent tests, they'll be using the
`@IgnoreUnderRavenwood` annotation to quietly ignore tests that
don't currently have enough Ravenwood support to run.
However, over time the Ravenwood environment will continue to
gain new functionality, and we'd like an easy way to "probe" those
previously-ignored tests to see if any of them started passing.
This change implements this using a locally-configured flag
that unconditionally runs all tests under Ravenwood, and reports
failures for any tests marked as `@IgnoreUnderRavenwood` that
are now passing. (As these "failures" might be confusing for normal
test authors, we leave it disabled by default in the build, and
leave it for internal Ravenwood maintainers.)
To confirm this works, implement two new methods on Parcel, and
detect the relevant tests that started passing.
Bug: 292141694
Test: atest CtsUtilTestCasesRavenwood CtsUtilTestCases
Change-Id: Ied2a5e3d1781c76a4f3506192d015309f2f424b2
Diffstat (limited to 'ravenwood/junit-stub-src')
-rw-r--r-- | ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java b/ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java index fb71e9d1ac6f..0ff6a1ad846b 100644 --- a/ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java +++ b/ravenwood/junit-stub-src/android/platform/test/ravenwood/RavenwoodRuleImpl.java @@ -22,12 +22,10 @@ public class RavenwoodRuleImpl { } public static void init(RavenwoodRule rule) { - // Must be provided by impl to reference runtime internals - throw new UnsupportedOperationException(); + // No-op when running on a real device } public static void reset(RavenwoodRule rule) { - // Must be provided by impl to reference runtime internals - throw new UnsupportedOperationException(); + // No-op when running on a real device } } |