问题描述
VtsTrebleSysProp
VtsTrebleSysProp#testVendorPropertyNamespace
Fail Details:
6 != 0 vendor propertes (ro.custom.build.version ro.internal.build.version ro.tcustom.build.version ro.tinno.scc ro.tinno.scc.tlc ro.tinternal.build.version) have wrong namespace
6 != 0 vendor propertes (ro.custom.build.version ro.internal.build.version ro.tcustom.build.version ro.tinno.scc ro.tinno.scc.tlc ro.tinternal.build.version) have wrong namespace
解决方案
命名规则:VTS 规定的下面属性头。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
58 <a class="xv" target="_blank" name="_VENDOR_OR_ODM_NAMESPACES" rel="noopener noreferrer"></a>_VENDOR_OR_ODM_NAMESPACES = [ 59 <span class="s">"ctl.odm."</span>, 60 <span class="s">"ctl.vendor."</span>, 61 <span class="s">"ctl.start$odm."</span>, 62 <span class="s">"ctl.start$vendor."</span>, 63 <span class="s">"ctl.stop$odm."</span>, 64 <span class="s">"ctl.stop$vendor."</span>, 65 <span class="s">"ro.boot."</span>, 66 <span class="s">"ro.hardware."</span>, 67 <span class="s">"ro.odm."</span>, 68 <span class="s">"ro.vendor."</span>, 69 <span class="s">"odm."</span>, 70 <span class="s">"persist.odm."</span>, 71 <span class="s">"persist.vendor."</span>, 72 <span class="s">"vendor."</span> 73 ] |
/test/vts-testcase/security/system_property/VtsTrebleSysPropTest.py
146 for prefix in self._VENDOR_OR_ODM_NAMESPACES),
147 property_dict.keys())
148 asserts.assertEqual(
149 len(violation_list), 0,
150 ("%s propertes (%s) have wrong namespace" %
151 (partition, " ".join(sorted(violation_list)))))