gpt4 book ai didi

Android CTS 错误 : E/TestInvocation: Unexpected contents in directory/tmp/android-cts-media

转载 作者:行者123 更新时间:2023-11-29 15:07:32 28 4
gpt4 key购买 nike

我正在尝试运行 android CTS 测试。

这是我运行时出现的错误:

E/TestInvocation: Unexpected contents in directory /tmp/android-cts-media

我按照 http://source.android.com/compatibility/cts/setup.html 中的说明使用 copy_media.sh 脚本复制了媒体文件。有没有人遇到过这样的错误,知道怎么处理?

完整日志如下。

02-21 18:31:51 I/TestInvocation: Invocation was started with cmd: cts -p android.location
02-21 18:31:51 D/BackgroundDeviceAction: Sleep for 5000 before starting logcat for 0123456789012345.
02-21 18:31:51 I/TestInvocation: Starting invocation for 'cts' on build '2566412' on device 0123456789012345
02-21 18:31:51 I/FileSystemLogSaver: Using log file directory /tmp/2566412/cts/inv_3208448448450268121
02-21 18:31:52 I/0123456789012345: Created result dir 2016.02.21_18.31.51
02-21 18:31:52 W/BatteryFetcher: IOException getting battery level for device 0123456789012345: Unrecognized response to battery level queries
02-21 18:31:52 D/RunUtil: run interrupt allowed: true
02-21 18:31:52 D/CtsPreconditionsApp.apk: Uploading CtsPreconditionsApp.apk onto device '0123456789012345'
02-21 18:31:52 D/Device: Uploading file onto device '0123456789012345'
02-21 18:31:54 D/InstrumentationTest: Collecting test info for com.android.cts.preconditions on device 0123456789012345
02-21 18:31:54 I/RemoteAndroidTest: Running am instrument -w -r -e log true -e timeout_msec 300000 com.android.cts.preconditions/android.support.test.runner.AndroidJUnitRunner on intel-full_aosp_on_sofia-0123456789012345
02-21 18:31:56 I/RemoteAndroidTest: Running am instrument -w -r -e log false -e timeout_msec 300000 com.android.cts.preconditions/android.support.test.runner.AndroidJUnitRunner on intel-full_aosp_on_sofia-0123456789012345
02-21 18:31:56 D/BackgroundDeviceAction: Starting logcat for 0123456789012345.
02-21 18:31:58 D/TestDevice: Uninstalling com.android.cts.preconditions
02-21 18:32:08 E/TestInvocation: Caught exception while running invocation
02-21 18:32:08 E/TestInvocation: Unexpected contents in directory /tmp/android-cts-media
com.android.tradefed.targetprep.TargetSetupError: Unexpected contents in directory /tmp/android-cts-media
at com.android.cts.tradefed.targetprep.HostPreconditionPreparer.updateLocalMediaPath(HostPreconditionPreparer.java:248)
at com.android.cts.tradefed.targetprep.HostPreconditionPreparer.createLocalMediaPath(HostPreconditionPreparer.java:391)
at com.android.cts.tradefed.targetprep.HostPreconditionPreparer.runMediaPrecondition(HostPreconditionPreparer.java:507)
at com.android.cts.tradefed.targetprep.HostPreconditionPreparer.setUp(HostPreconditionPreparer.java:535)
at com.android.tradefed.invoker.TestInvocation.doSetup(TestInvocation.java:556)
at com.android.tradefed.invoker.TestInvocation.prepareAndRun(TestInvocation.java:547)
at com.android.tradefed.invoker.TestInvocation.performInvocation(TestInvocation.java:452)
at com.android.tradefed.invoker.TestInvocation.invoke(TestInvocation.java:232)
at com.android.tradefed.command.CommandScheduler$InvocationThread.run(CommandScheduler.java:449)

02-21 18:32:08 D/RunUtil: run interrupt allowed: false
02-21 18:33:05 I/LogFileSaver: Saved log file /home/lbp/dev/cts/./android-cts/tools/../../android-cts/repository/logs/2016.02.21_18.31.51/target_setup_error_bugreport_2086352445259579401.zip
02-21 18:33:05 I/0123456789012345: Saved log target_setup_error_bugreport_2086352445259579401.zip
02-21 18:33:05 I/FileSystemLogSaver: Saved log file /tmp/2566412/cts/inv_3208448448450268121/target_setup_error_bugreport_2382954311699370436.zip

最佳答案

  • 尝试运行带有 --skip-preconditions 后缀的 CTS。它将跳过检查媒体文件等先决条件。您只需要媒体文件进行媒体压力测试。它是一个 1.8 GB 的文件。因此,如果您不测试媒体压力情况,最好跳过它。

示例:

运行cts -p android.telecom --skip-preconditions

  • 或者您可以手动将媒体文件复制到/sdcard/test 文件夹。

  • 此外,您可以尝试从您 PC 的/tmp 文件夹中删除 android-cts-media。然后从 CTS media files 下载 CTS 媒体文件.它是一个 1.8 GB 的文件(android-cts-media-1.1.zip)。然后将下载的文件复制到/tmp/

关于Android CTS 错误 : E/TestInvocation: Unexpected contents in directory/tmp/android-cts-media,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35539252/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com