我已经针对MSM的4.2版本的Aurora运行Android 4.2 R4 CTS套件,多次:完整套件(run cts --plan CTS
)或单个软件包(run cts -p android.acceleration
)。这是在Ubuntu 12.04 LTS 64位(使用VMWare Fusion v6进行虚拟化)
测试套件执行,传递有时失败,但无法写入日志或生成报告数据:
cts-tf > run cts -p android.acceleration
04-02 13:42:20 I/TestInvocation: Starting invocation for 'cts' on build '4.2_r4' on device e05e1f79
04-02 13:42:20 I/e05e1f79: Created result dir 2014.04.02_13.42.20
04-02 13:42:33 I/e05e1f79: Collecting device info
04-02 13:42:34 I/e05e1f79: -----------------------------------------
04-02 13:42:34 I/e05e1f79: Test package android.acceleration started
04-02 13:42:34 I/e05e1f79: -----------------------------------------
04-02 13:42:37 I/e05e1f79: android.acceleration.cts.HardwareAccelerationTest#testIsHardwareAccelerated PASS
04-02 13:42:37 I/e05e1f79: android.acceleration.cts.HardwareAccelerationTest#testNotAttachedView PASS
04-02 13:42:38 I/e05e1f79: android.acceleration.cts.SoftwareAccelerationTest#testIsHardwareAccelerated PASS
04-02 13:42:38 I/e05e1f79: android.acceleration.cts.SoftwareAccelerationTest#testNotAttachedView PASS
04-02 13:42:38 I/e05e1f79: android.acceleration.cts.WindowFlagHardwareAccelerationTest#testIsHardwareAccelerated PASS
04-02 13:42:39 I/e05e1f79: android.acceleration.cts.WindowFlagHardwareAccelerationTest#testNotAttachedView PASS
04-02 13:42:41 E/CtsXmlResultReporter: Failed to write log for device_logcat
04-02 13:42:41 E/CtsXmlResultReporter: Failed to write log for host_log
04-02 13:42:41 I/e05e1f79: android.acceleration package complete: Passed 6, Failed 0, Not Executed 0
04-02 13:42:41 I/e05e1f79: Created xml report file at file:///opt/android-cts/cts4.2/android-cts/tools/./../../android-cts/repository/results/2014.04.02_13.42.20/testResult.xml
04-02 13:42:41 E/CtsXmlResultReporter: Failed to generate report data
在CTS /repository/logs
& /repository/results
个目录,没有新的日志或结果条目。令人惊讶的是关于CtsXmlResultReporter
的信息很少,所以我转向了很好的事情。有人可以帮忙吗?感谢
答案 0 :(得分:1)
这只是一个chmod问题。我需要运行多个版本的CTS(4.2,4.3,4.4),并在root时创建了4.2目录结构。