Skip to content
Commit 8a001c1a authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Add DeviceTypeRule to filter tests only for large screens or foldable

This allows SysUI test classes to specify if they are meant only for large screens or tablet by using an annotation.

This allow us to avoid having several custom suites to manually setup for special needs (e.g. foldable/tablet), simplifying test configuration. After this change, it is only needed to add the usual integration test suite also to foldable/tablet build targets, and everything will work fine (on phones, annotated tests will not work)

If those rules work, then FoldableOnlyRuleTest and LargeScreenOnlyRuleTest shouldn't fail in any target during presubmits.

Test: atest FoldableOnlyRuleTest && atest LargeScreenOnlyRuleTest
Bug: 228597099
Change-Id: I8f1579cdee9df9d8e5001730c184d34575651273
parent dec54533
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment