Running tests only in 1 nav mode

Pixel1: 3-button
Pixel2: 2-button
Pixel3: 0-button

This is a temporary workaround for the listed bugs.

Bug: 130558787
Bug: 131419978
Change-Id: Ic57422c7ca8e9985fc0613239c803149e66d907f
This commit is contained in:
vadimt committed 2019-04-26 13:22:28 -07:00
1 parent 6f09dd61af
commit 9565c2a071
2 files changed
+69 -4

No files matched your search

@@ -71,7 +71,8 @@ public class NavigationModeSwitchRule implements TestRule {
@Override
public Statement apply(Statement base, Description description) {
if (TestHelpers.isInLauncherProcess() &&
// b/130558787; b/131419978
if (false && TestHelpers.isInLauncherProcess() &&
description.getAnnotation(NavigationModeSwitch.class) != null) {
Mode mode = description.getAnnotation(NavigationModeSwitch.class).mode();
return new Statement() {
@@ -92,12 +93,9 @@ public class NavigationModeSwitchRule implements TestRule {
if (mode == TWO_BUTTON || mode == ALL) {
evaluateWithTwoButtons();
}
/*
b/131419978
if (mode == THREE_BUTTON || mode == ALL) {
evaluateWithThreeButtons();
}
*/
} finally {
setActiveOverlay(prevOverlayPkg, originalMode);
}