【问题标题】:Google STS TradeFed fails with error: Failed to run command: com.android.tradefed.config.ConfigurationException: Can not find local config stsGoogle STS TradeFed 失败并出现错误:无法运行命令:com.android.tradefed.config.ConfigurationException:找不到本地配置 sts
【发布时间】:2020-11-07 16:49:55
【问题描述】:

这与 Google STS 有关。与 CTS 和 VTS 类似,Google Trade Federation 工具用于运行这些测试。但是,与 CTS 和 VTS 不同的是,当调用run sts 命令时,STS 套件会失败:

sts-tf > run sts
Failed to run command: com.android.tradefed.config.ConfigurationException: Can not find local config sts.
com.android.tradefed.config.ConfigurationException: Can not find local config sts.
    at com.android.tradefed.config.ConfigurationFactory$ConfigLoader.findConfigName(ConfigurationFactory.java:346)
    at com.android.tradefed.config.ConfigurationFactory$ConfigLoader.getConfigurationDef(ConfigurationFactory.java:269)
    at com.android.tradefed.config.ConfigurationFactory.getConfigurationDef(ConfigurationFactory.java:492)
    at com.android.tradefed.config.ConfigurationFactory.internalCreateConfigurationFromArgs(ConfigurationFactory.java:600)
    at com.android.tradefed.config.ConfigurationFactory.createConfigurationFromArgs(ConfigurationFactory.java:528)
    at com.android.tradefed.command.CommandScheduler.createConfiguration(CommandScheduler.java:1255)
    at com.android.tradefed.command.CommandScheduler.internalAddCommand(CommandScheduler.java:1287)
    at com.android.tradefed.command.CommandScheduler.addCommand(CommandScheduler.java:1168)
    at com.android.tradefed.command.Console$25.run(Console.java:704)
    at com.android.tradefed.command.Console$25.run(Console.java:687)
    at com.android.tradefed.command.Console.executeCmdRunnable(Console.java:926)
    at com.android.tradefed.command.Console.run(Console.java:1028)
    at com.android.compatibility.common.tradefed.command.CompatibilityConsole.run(CompatibilityConsole.java:105)

对于它所期望的“本地配置”没有任何线索。一些谷歌搜索让我明白了这一点: https://android.googlesource.com/platform/tools/tradefederation/+/master/src/com/android/tradefed/config/ConfigurationFactory.java#346

有人知道这里有什么问题吗?

谢谢。

【问题讨论】:

    标签: android cts android-vts android-tradefederation


    【解决方案1】:

    您可以尝试将其作为 sts-engbuild 运行吗?

    完整的命令是这样的。

    run sts-engbuild -d -o -s <Serial_ID>
    

    【讨论】:

      猜你喜欢
      • 2015-05-11
      • 1970-01-01
      • 2018-01-14
      • 2015-10-05
      • 1970-01-01
      • 2013-04-25
      • 1970-01-01
      • 2016-02-19
      • 1970-01-01
      相关资源
      最近更新 更多