Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c22a62a1 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Honoring @PortraitLandscape annotation in presubmit

Bug: 187761685
Test: presubmit
Flag: N/A
Change-Id: Icf0d06fc244e894ab8d5c9e8c5cddeb78b847a26
parent ee7a0694
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@ import android.view.Surface;

import com.android.launcher3.tapl.TestHelpers;
import com.android.launcher3.util.rule.FailureWatcher;
import com.android.launcher3.util.rule.TestStabilityRule;

import org.junit.rules.TestRule;
import org.junit.runner.Description;
@@ -34,11 +33,7 @@ public class PortraitLandscapeRunner implements TestRule {
    @Override
    public Statement apply(Statement base, Description description) {
        if (!TestHelpers.isInLauncherProcess()
                || description.getAnnotation(PortraitLandscape.class) == null
                // If running in presubmit, don't run in both orientations.
                // It's important to keep presubmits fast even if we will occasionally miss
                // regressions in presubmit.
                || TestStabilityRule.isPresubmit()) {
                || description.getAnnotation(PortraitLandscape.class) == null) {
            return base;
        }