当我尝试在Android P上运行CTS时,我得到了下面的错误。你知道出了什么问题吗?
$ ./android-cts/tools/cts-tradefed
cts-tf >运行cts
错误:
02-19 15:21:36 E/TestInvoca`enter code here`tion: Caught AssertionError while running invocation: java.lang.AssertionError: expected null, but was:<Unknown failure (at android.os.Binder.execTransact(Binder.java:731))>`enter code here`
02-19 15:21:36 E/TestInvocation: expected null, but was:<Unknown failure (at android.os.Binder.execTransact(Binder.java:731))>
java.lang.AssertionError: expected null, but was:<Unknown failure (at android.os.Binder.execTransact(Binder.java:731))>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotNull(Assert.java:755)
at org.junit.Assert.assertNull(Assert.java:737)
at org.junit.Assert.assertNull(Assert.java:747)
at com.android.tradefed.testtype.InstrumentationTest.run(InstrumentationTest.java:707)
at com.android.tradefed.testtype.AndroidJUnitTest.run(AndroidJUnitTest.java:264)
at com.android.compatibility.common.tradefed.targetprep.ApkInstrumentationPreparer.instrument(ApkInstrumentationPreparer.java:129)
at com.android.compatibility.common.tradefed.targetprep.ApkInstrumentationPreparer.run(ApkInstrumentationPreparer.java:77)
at com.android.compatibility.common.tradefed.targetprep.PreconditionPreparer.setUp(PreconditionPreparer.java:65)
at com.android.tradefed.invoker.InvocationExecution.doSetup(InvocationExecution.java:196)
at com.android.tradefed.invoker.TestInvocation.prepareAndRun(TestInvocation.java:356)
at com.android.tradefed.invoker.TestInvocation.performInvocation(TestInvocation.java:205)
at com.android.tradefed.invoker.TestInvocation.invoke(TestInvocation.java:667)
at com.android.tradefed.command.CommandScheduler$InvocationThread.run(CommandScheduler.java:566)
02-19 15:21:36 W/ResultReporter: Invocation failed: java.lang.AssertionError: expected null, but was:<Unknown failure (at android.os.Binder.execTransact(Binder.java:731))>
02-19 15:21:36 D/ResultReporter: Saved logs for device_logcat_test in /home/sam/Downloads/android-cts-9.0_r10-linux_x86-arm/android-cts/tools/../../android-cts/logs/2020.02.19_15.21.35/inv_1420379781159145465/device_logcat_test_8965375754550142253.txt.gz
02-19 15:21:36 D/ResultReporter: Saved logs for device_logcat_teardown in /home/sam/Downloads/android-cts-9.0_r10-linux_x86-arm/android-cts/tools/../../android-cts/logs/2020.02.19_15.21.35/inv_1420379781159145465/device_logcat_teardown_8630617971443262202.txt.gz
02-19 15:21:36 D/ResultReporter: Saved logs for host_log in /home/sam/Downloads/android-cts-9.0_r10-linux_x86-arm/android-cts/tools/../../android-cts/logs/2020.02.19_15.21.35/inv_1420379781159145465/host_log_1244842110714179011.txt.gz02-19 15:21:36 I/SuiteResultReporter:============================================ ================= Results ================== ===============消耗时间==============聚合测试总运行时间:0毫秒===============汇总===============总运行时间: 1s 0/0模块完成的总测试:0通过:0失败:0 ============== End of Results ============== ============================================
发布于 2020-02-25 22:51:38
从错误堆栈看,问题似乎与主机中使用的adb版本有关。
怀疑检测命令由于绑定器中的故障而不能成功运行。
请您将adb版本更新到1.0.40及以上版本,然后重试运行CTS。
https://stackoverflow.com/questions/60297716
复制相似问题