summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangbill <yangbill@google.com>2020-05-15 10:20:21 +0800
committeryangbill <yangbill@google.com>2020-05-15 10:28:17 +0800
commitc39d6526368891528bc928f543701e101fb747d3 (patch)
treedcd6721e6cec900902f002bcfe0f902ad7dfee9c
parent749ca3aabe2105b8459ee0bdd0a6881b289ec950 (diff)
downloadplatform_test_vts-testcase_security-c39d6526368891528bc928f543701e101fb747d3.tar.gz
platform_test_vts-testcase_security-c39d6526368891528bc928f543701e101fb747d3.tar.bz2
platform_test_vts-testcase_security-c39d6526368891528bc928f543701e101fb747d3.zip
Fix vts_treble_sys_prop_test failure.
Filter in python3 change to iteration, need to convert to list type for length usage. Bug: 156629748 Test: atest vts_treble_sys_prop_test Change-Id: Ie0f826c45464abebbc2aaf39d18aa8b885c83a1a
-rw-r--r--system_property/vts_treble_sys_prop_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/system_property/vts_treble_sys_prop_test.py b/system_property/vts_treble_sys_prop_test.py
index db69cd3..6e27abe 100644
--- a/system_property/vts_treble_sys_prop_test.py
+++ b/system_property/vts_treble_sys_prop_test.py
@@ -327,11 +327,11 @@ class VtsTrebleSysPropTest(unittest.TestCase):
"Found %d property names in product property contexts",
len(property_dict))
- violation_list = filter(
+ violation_list = list(filter(
lambda x: any(
x.startswith(prefix)
for prefix in self._VENDOR_OR_ODM_NAMESPACES),
- property_dict.keys())
+ property_dict.keys()))
self.assertEqual(
len(violation_list), 0,
("product propertes (%s) have wrong namespace" %