mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Removing "Failed to get system health diags" message from fallback tests
Now getting diags though the test process that has right permissions. This doesn't fix other failures in fallback tests. Bug: 141517004 Change-Id: Ibba5f0471a83525a64544c62dbe82ab3e11712cd Merged-in: Ibba5f0471a83525a64544c62dbe82ab3e11712cd
This commit is contained in:
@@ -42,6 +42,7 @@ import androidx.test.uiautomator.UiDevice;
|
||||
import androidx.test.uiautomator.Until;
|
||||
|
||||
import com.android.launcher3.tapl.LauncherInstrumentation;
|
||||
import com.android.launcher3.tapl.TestHelpers;
|
||||
import com.android.launcher3.testcomponent.TestCommandReceiver;
|
||||
import com.android.launcher3.util.rule.FailureWatcher;
|
||||
import com.android.quickstep.NavigationModeSwitchRule.NavigationModeSwitch;
|
||||
@@ -103,6 +104,11 @@ public class FallbackRecentsTest {
|
||||
}
|
||||
}
|
||||
};
|
||||
if (TestHelpers.isInLauncherProcess()) {
|
||||
mLauncher.setSystemHealthSupplier(startTime -> TestCommandReceiver.callCommand(
|
||||
TestCommandReceiver.GET_SYSTEM_HEALTH_MESSAGE, startTime.toString()).
|
||||
getString("result"));
|
||||
}
|
||||
}
|
||||
|
||||
@NavigationModeSwitch(mode = THREE_BUTTON)
|
||||
|
||||
Reference in New Issue
Block a user