[DESCRIPTION]
android.server.cts.KeyguardLockedTests#testDismissKeyguardActivity_method fail
junit.framework.AssertionFailedError: Not in logcat: onDismissSucceeded
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.TestCase.fail(TestCase.java:227)
at android.server.cts.KeyguardTestBase.assertInLogcat(KeyguardTestBase.java:70)
at android.server.cts.KeyguardTestBase.assertOnDismissSucceededInLogcat(KeyguardTestBase.java:41)
at android.server.cts.KeyguardLockedTests.testDismissKeyguardActivity_method(KeyguardLockedTests.java:119)
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.TestCase.fail(TestCase.java:227)
at android.server.cts.KeyguardTestBase.assertInLogcat(KeyguardTestBase.java:70)
at android.server.cts.KeyguardTestBase.assertOnDismissSucceededInLogcat(KeyguardTestBase.java:41)
at android.server.cts.KeyguardLockedTests.testDismissKeyguardActivity_method(KeyguardLockedTests.java:119)
[SOLUTION]
这种情况属于log打印过多导致的的fail,那么修改思路有两种:
1、减少log打印;
【FAQ20559】MTK 对于 Android Go 版本缩减 logs 量的建议
2、增大log buffer;
【FAQ18332】如何修改android log buffer 大小