【问题标题】:syntax error: unexpected 'newline' in .config file in android vts语法错误:android vts 中的 .config 文件中出现意外 \'newline\'
【发布时间】: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


【解决方案1】:

请检查您是否修改了 vts-tf 文件??? 我之前已经编辑并添加了 adb 路径,所以它也对我有用。面临同样的问题 所以我删除了脚本并再次下载并运行而不修改任何内容然后它对我来说很好

【讨论】:

    猜你喜欢
    • 2019-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多