summaryrefslogtreecommitdiff
path: root/test/etc/apex_bootclasspath_utils.py
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2022-08-18 14:15:43 +0100
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-08-23 14:42:41 +0000
commitc6d2a790842718a04154b5955c7cd255b82ae906 (patch)
treea9ed2a0d0f5271486ea7904400d04358c14efad7 /test/etc/apex_bootclasspath_utils.py
parent3e1af305e8f44aa0668e1c678de00908ac464bfb (diff)
run-test-jar: Use bool types instead of "y" and "n"
Test: diff generated commands Change-Id: Ifdae86011adbec4d43fb80fdad613c3f4792d3fc
Diffstat (limited to 'test/etc/apex_bootclasspath_utils.py')
-rwxr-xr-xtest/etc/apex_bootclasspath_utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/etc/apex_bootclasspath_utils.py b/test/etc/apex_bootclasspath_utils.py
index 0a95646901..f969b149b2 100755
--- a/test/etc/apex_bootclasspath_utils.py
+++ b/test/etc/apex_bootclasspath_utils.py
@@ -52,10 +52,10 @@ def get_apex_bootclasspath_impl(bpath_prefix: str):
#
# Arguments.
# ${1}: host (y|n).
-def get_apex_bootclasspath(host: str):
+def get_apex_bootclasspath(host: bool):
bpath_prefix=""
- if host == "y":
+ if host:
bpath_prefix=ANDROID_HOST_OUT
return get_apex_bootclasspath_impl(bpath_prefix)
@@ -64,10 +64,10 @@ def get_apex_bootclasspath(host: str):
#
# Arguments.
# ${1}: host (y|n).
-def get_apex_bootclasspath_locations(host: str):
+def get_apex_bootclasspath_locations(host: bool):
bpath_location_prefix=""
- if host == "y":
+ if host:
if ANDROID_HOST_OUT[0:len(ANDROID_BUILD_TOP)+1] == f"{ANDROID_BUILD_TOP}/":
bpath_location_prefix=ANDROID_HOST_OUT[len(ANDROID_BUILD_TOP)+1:]
else: