From c6d2a790842718a04154b5955c7cd255b82ae906 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Thu, 18 Aug 2022 14:15:43 +0100 Subject: run-test-jar: Use bool types instead of "y" and "n" Test: diff generated commands Change-Id: Ifdae86011adbec4d43fb80fdad613c3f4792d3fc --- test/etc/apex_bootclasspath_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/etc/apex_bootclasspath_utils.py') 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: -- cgit v1.2.3-59-g8ed1b