summaryrefslogtreecommitdiff
path: root/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/com/android/launcher3/util/rule/TestStabilityRule.java')
-rw-r--r--tests/src/com/android/launcher3/util/rule/TestStabilityRule.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java b/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java
index 38de07192a..b51045fc09 100644
--- a/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java
+++ b/tests/src/com/android/launcher3/util/rule/TestStabilityRule.java
@@ -146,4 +146,8 @@ public class TestStabilityRule implements TestRule {
return sRunFlavor;
}
+
+ public static boolean isPresubmit() {
+ return getRunFlavor() == PLATFORM_PRESUBMIT;
+ }
}