From 5c8b92b3c3fc37fb1cf448be56c0dd4cd8c0a656 Mon Sep 17 00:00:00 2001 From: Yi-yo Chiang Date: Wed, 25 Jul 2018 11:40:15 +0800 Subject: [PATCH] create_reference_dumps.py: Change lsdump_paths.txt to newline-separated paths Split the content of lsdump_paths.txt with newline. Bug: 111814844 Test: m vndk findlsdumps -j18 Test: ./utils/create_reference_dumps.py -products aosp_arm64 Change-Id: I76ed008382fff8589d29ab97720d262a7636d523 --- vndk/tools/header-checker/utils/create_reference_dumps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vndk/tools/header-checker/utils/create_reference_dumps.py b/vndk/tools/header-checker/utils/create_reference_dumps.py index bdd0c3fd6..18185c28c 100755 --- a/vndk/tools/header-checker/utils/create_reference_dumps.py +++ b/vndk/tools/header-checker/utils/create_reference_dumps.py @@ -43,8 +43,8 @@ def get_lsdump_paths_from_out(product): assert(os.path.exists(lsdump_paths_file) == True) lsdump_paths = dict() with open(lsdump_paths_file) as f: - for path in f.read().split(' '): - add_to_path_dict(path, lsdump_paths) + for path in f: + add_to_path_dict(path.rstrip(), lsdump_paths) return lsdump_paths def find_and_copy_lib_lsdumps(target, ref_dump_dir_stem, ref_dump_dir_insertion,