summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-15 20:06:37 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-15 20:06:37 +0000
commit9f4597cf7be1eb7cccc09d3c27762d3e1f41a111 (patch)
tree2c609d9b43c6e61b5b6a9050007028a8a9682355
parent5a68abe1529266636e9a869c93bc48f018558b8a (diff)
parenta33274db2922f007fd1278272ca20a31e0a828ec (diff)
downloadvndk-android-cts-10.0_r9.tar.gz
Change-Id: Iab116c5fbb291e5a6ef95cc6608c44196de1e15b
-rw-r--r--dependency/VtsVndkDependencyTest.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/dependency/VtsVndkDependencyTest.py b/dependency/VtsVndkDependencyTest.py
index 47b4e64..5c214ba 100644
--- a/dependency/VtsVndkDependencyTest.py
+++ b/dependency/VtsVndkDependencyTest.py
@@ -52,8 +52,12 @@ class VtsVndkDependencyTest(base_test.BaseTestClass):
/system/lib[64]/vndk-${VER}.
_vndk_sp: Set of strings. The names of VNDK-SP libraries in
/system/lib[64]/vndk-sp-${VER}.
- _SP_HAL_LINK_PATHS: Format strings of same-process HAL's link paths.
- _VENDOR_LINK_PATHS: Format strings of vendor processes' link paths.
+ _SP_HAL_LINK_PATHS: Format strings of same-process HAL's default link
+ paths.
+ _VENDOR_LINK_PATHS: Format strings of vendor processes' default link
+ paths.
+ _VENDOR_PERMITTED_PATHS: Same-process HAL and vendor processes'
+ permitted link paths.
_VENDOR_APP_DIRS: The app directories in vendor partitions.
"""
_TARGET_DIR_SEP = "/"
@@ -69,6 +73,9 @@ class VtsVndkDependencyTest(base_test.BaseTestClass):
"/odm/{LIB}/hw", "/odm/{LIB}/egl", "/odm/{LIB}",
"/vendor/{LIB}/hw", "/vendor/{LIB}/egl", "/vendor/{LIB}"
]
+ _VENDOR_PERMITTED_PATHS = [
+ "/odm", "/vendor"
+ ]
_VENDOR_APP_DIRS = [
"/vendor/app", "/vendor/priv-app", "/odm/app", "/odm/priv-app"
]
@@ -362,7 +369,7 @@ class VtsVndkDependencyTest(base_test.BaseTestClass):
vendor_link_paths = [vndk_utils.FormatVndkPath(x, bitness) for
x in self._VENDOR_LINK_PATHS]
vendor_namespace = self._FindLibsInLinkPaths(
- bitness, vendor_link_paths + self._VENDOR_APP_DIRS, objs)
+ bitness, self._VENDOR_PERMITTED_PATHS, objs)
# Exclude VNDK and VNDK-SP extensions from vendor libraries.
for vndk_ext_dir in (vndk_utils.GetVndkExtDirectories(bitness) +
vndk_utils.GetVndkSpExtDirectories(bitness)):
@@ -373,8 +380,8 @@ class VtsVndkDependencyTest(base_test.BaseTestClass):
sp_hal_link_paths = [vndk_utils.FormatVndkPath(x, bitness) for
x in self._SP_HAL_LINK_PATHS]
- sp_hal_namespace = self._FindLibsInLinkPaths(bitness,
- sp_hal_link_paths, objs)
+ sp_hal_namespace = self._FindLibsInLinkPaths(
+ bitness, self._VENDOR_PERMITTED_PATHS, objs)
# Find same-process HAL and dependencies
sp_hal_libs = set()