【发布时间】:2022-08-24 21:38:38
【问题描述】:
目前,我正在运行一个VTS 模块VtsHalGnssExtV1_0TargetTest。
但我收到了error syntax error: unexpected \'newline\'。但是测试运行正确。
=======================================================
=============== Summary ===============
Total Run time: 5m 4s
0/2 modules completed
Module(s) with run failure(s):
armeabi-v7a VtsHalGnssExtV1_0TargetTest: VtsHalGnssExtV1_0TargetTest.config did not report any run:
/data/local/tmp/VtsHalGnssExtV1_0TargetTest/VtsHalGnssExtV1_0TargetTest.config[1]: syntax error: unexpected \'newline\'
arm64-v8a VtsHalGnssExtV1_0TargetTest: VtsHalGnssExtV1_0TargetTest.config did not report any run:
/data/local/tmp/VtsHalGnssExtV1_0TargetTest/VtsHalGnssExtV1_0TargetTest.config[1]: syntax error: unexpected \'newline\'
Total Tests : 12
PASSED : 6
FAILED : 6
IMPORTANT: Some modules failed to run to completion, test counts may be inaccurate.
============== End of Results ==============
============================================
我正在使用以下adb 版本:
$ adb version
Android Debug Bridge version 1.0.39
Version 1:8.1.0+r23-5~18.04
Installed as /usr/lib/android-sdk/platform-tools/adb
以下是我的VtsHalGnssExtV1_0TargetTest.config 文件:
<!-- Test config are updated with new class and preparer available in vts 11 -->
<configuration description=\"Config for VTS VtsHalGnssExtV1_0TargetTest for complete testing.\">
<option name=\"test-suite-tag\" value=\"apct\" />
<option name=\"test-suite-tag\" value=\"apct-native\" />
<target_preparer class=\"com.android.tradefed.targetprep.RootTargetPreparer\">
</target_preparer>
<target_preparer class=\"com.android.tradefed.targetprep.PushFilePreparer\">
<option name=\"cleanup\" value=\"true\" />
<option name=\"push\" value=\"VtsHalGnssExtV1_0TargetTest->/data/local/tmp/VtsHalGnssExtV1_0TargetTest\" />
</target_preparer>
<test class=\"com.android.tradefed.testtype.GTest\" >
<option name=\"native-test-device-path\" value=\"/data/local/tmp\" />
<option name=\"module-name\" value=\"VtsHalGnssExtV1_0TargetTest\" />
<option name=\"native-test-timeout\" value=\"600000\" />
</test>
目前,我无法找到我的配置文件中使用的任何换行符。我是不是错过了什么。
-
你是从windows复制的吗?它可能有窗口行结尾
标签: android adb android-vts android-tradefederation