微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > GTS google.features com.google.android.xts.features.GoogleFeatu resTest -- te...

GTS google.features com.google.android.xts.features.GoogleFeatu resTest -- te...

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
Run GTS时出现如下google.features package case fail:
com.google.android.xts.features.GoogleFeaturesTest
-- testFeatureGoogleBuild
failjunit.php?mod=tag&id=6090" target="_blank" class="relatedlink">Framework.AssertionFailedError
at
com.google.android.xts.features.GoogleFeaturesTestBase.checkGoogleFeature(GoogleFeaturesTestBase.java:54
)
-- testFeatureGoogleExperience
failunit.framework.AssertionFailedError
at
com.google.android.xts.features.GoogleFeaturesTestBase.checkGoogleFeature(GoogleFeaturesTestBase.java:54
)
[SOLUTION]
这两条case是在检查设备上是否有如下两个system feature:
com.google.android.feature.GOOGLE_BUIL
com.google.android.feature.GOOGLE_EXPERIENCE
如果这两个feautre存在,那么相关的case就会fail
public void testFeatureGoogleBuild()
throws Exception
{
checkGoogleFeature("com.google.android.feature.GOOGLE_BUILD");
}
public void testFeatureGoogleExperience()
throws Exception
{
checkGoogleFeature("com.google.android.feature.GOOGLE_EXPERIENCE");
}
protected void checkGoogleFeature(String paramString)
throws Exception
{
for (FeatureInfo localFeatureInfo : this.mContext.getPackageManager().getSystemAvailableFeatures())if (localFeatureInfo.name != null)
assertFalse(paramString.contains(localFeatureInfo.name));
}
请将这两个Feature的definition从codebase中移除再Run GTS 验证
这两个feature的definition 在\vendor\mediatek\[project name]\目录下

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top