From 2124be5caee6803d5bfe6f7cdc8e3367cb375807 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Thu, 21 Apr 2022 10:27:37 -0700 Subject: toolchain_utils: s/Cr OS/CrOS/g Result of running `sed -ri 's/Chrom(ium|e) OS/Chrom\1OS/g' $(find -type f)`. BUG=None TEST=None Change-Id: I59be92537aa19bc989f52b585e307e76dbde401b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3600147 Reviewed-by: Manoj Gupta Commit-Queue: George Burgess Tested-by: George Burgess --- debug_info_test/allowlist.py | 2 +- debug_info_test/check_cus.py | 2 +- debug_info_test/check_exist.py | 2 +- debug_info_test/check_icf.py | 2 +- debug_info_test/check_ngcc.py | 2 +- debug_info_test/debug_info_test.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'debug_info_test') diff --git a/debug_info_test/allowlist.py b/debug_info_test/allowlist.py index 9cf42af0..9205b37b 100644 --- a/debug_info_test/allowlist.py +++ b/debug_info_test/allowlist.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The Chromium OS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/check_cus.py b/debug_info_test/check_cus.py index 41123259..a83a9bc4 100644 --- a/debug_info_test/check_cus.py +++ b/debug_info_test/check_cus.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The Chromium OS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/check_exist.py b/debug_info_test/check_exist.py index 898dae45..768d09bd 100644 --- a/debug_info_test/check_exist.py +++ b/debug_info_test/check_exist.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The Chromium OS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/check_icf.py b/debug_info_test/check_icf.py index a46968e7..a79d5e80 100644 --- a/debug_info_test/check_icf.py +++ b/debug_info_test/check_icf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The Chromium OS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/check_ngcc.py b/debug_info_test/check_ngcc.py index c86c220a..4a8241a0 100644 --- a/debug_info_test/check_ngcc.py +++ b/debug_info_test/check_ngcc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The Chromium OS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/debug_info_test.py b/debug_info_test/debug_info_test.py index ae7e9f48..52875b74 100755 --- a/debug_info_test/debug_info_test.py +++ b/debug_info_test/debug_info_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2018 The Chromium OS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -- cgit v1.2.3 From 74bd380a27f4f0e8e90ff2dc1cef0b502d74961b Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Fri, 2 Sep 2022 16:59:27 -0700 Subject: Autoformat all Python code This autoformats all Python code with our new Python formatter, `black`. BUG=b:244644217 TEST=None Change-Id: I15ee49233d98fb6295c0c53c129bbf8e78e0d9ff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3877337 Tested-by: George Burgess Reviewed-by: Jordan Abrahams-Whitehead Commit-Queue: George Burgess --- debug_info_test/allowlist.py | 68 +++++++++--------- debug_info_test/check_cus.py | 104 ++++++++++++++-------------- debug_info_test/check_exist.py | 137 +++++++++++++++++++------------------ debug_info_test/check_icf.py | 78 +++++++++++---------- debug_info_test/check_ngcc.py | 26 +++---- debug_info_test/debug_info_test.py | 84 ++++++++++++----------- 6 files changed, 254 insertions(+), 243 deletions(-) (limited to 'debug_info_test') diff --git a/debug_info_test/allowlist.py b/debug_info_test/allowlist.py index 9205b37b..945c0440 100644 --- a/debug_info_test/allowlist.py +++ b/debug_info_test/allowlist.py @@ -19,50 +19,50 @@ import re # The performance bottleneck of this script is readelf. Unless this becomes # slower than readelf, don't waste time here. def is_allowlisted(list_name, pattern): - """Check whether the given pattern is specified in the allowlist. + """Check whether the given pattern is specified in the allowlist. - Args: - list_name: name of the allowlist. - pattern: the target string. + Args: + list_name: name of the allowlist. + pattern: the target string. - Returns: - True if matched otherwise False. - """ - return pattern and allowlists[list_name].match(pattern) + Returns: + True if matched otherwise False. + """ + return pattern and allowlists[list_name].match(pattern) def prepare_allowlist(patterns): - """Join and compile the re patterns. + """Join and compile the re patterns. - Args: - patterns: regex patterns. + Args: + patterns: regex patterns. - Returns: - A compiled re object. - """ - return re.compile('|'.join(patterns)) + Returns: + A compiled re object. + """ + return re.compile("|".join(patterns)) def load_allowlists(dirname): - """Load allowlists under dirname. - - An allowlist ends with .allowlist. - - Args: - dirname: path to the dir. - - Returns: - A dictionary of 'filename' -> allowlist matcher. - """ - wlist = {} - for fn in glob.glob(os.path.join(dirname, '*.allowlist')): - key = os.path.splitext(os.path.basename(fn))[0] - with open(fn, 'r', encoding='utf-8') as f: - patterns = f.read().splitlines() - patterns = [l for l in patterns if l != ''] - patterns = [l for l in patterns if l[0] != '#'] - wlist[key] = prepare_allowlist(patterns) - return wlist + """Load allowlists under dirname. + + An allowlist ends with .allowlist. + + Args: + dirname: path to the dir. + + Returns: + A dictionary of 'filename' -> allowlist matcher. + """ + wlist = {} + for fn in glob.glob(os.path.join(dirname, "*.allowlist")): + key = os.path.splitext(os.path.basename(fn))[0] + with open(fn, "r", encoding="utf-8") as f: + patterns = f.read().splitlines() + patterns = [l for l in patterns if l != ""] + patterns = [l for l in patterns if l[0] != "#"] + wlist[key] = prepare_allowlist(patterns) + return wlist allowlists = load_allowlists(os.path.dirname(__file__)) diff --git a/debug_info_test/check_cus.py b/debug_info_test/check_cus.py index a83a9bc4..df2c4275 100644 --- a/debug_info_test/check_cus.py +++ b/debug_info_test/check_cus.py @@ -12,64 +12,68 @@ import subprocess import check_ngcc + cu_checks = [check_ngcc.not_by_gcc] def check_compile_unit(dso_path, producer, comp_path): - """check all compiler flags used to build the compile unit. + """check all compiler flags used to build the compile unit. - Args: - dso_path: path to the elf/dso. - producer: DW_AT_producer contains the compiler command line. - comp_path: DW_AT_comp_dir + DW_AT_name. + Args: + dso_path: path to the elf/dso. + producer: DW_AT_producer contains the compiler command line. + comp_path: DW_AT_comp_dir + DW_AT_name. - Returns: - A set of failed tests. - """ - failed = set() - for c in cu_checks: - if not c(dso_path, producer, comp_path): - failed.add(c.__module__) + Returns: + A set of failed tests. + """ + failed = set() + for c in cu_checks: + if not c(dso_path, producer, comp_path): + failed.add(c.__module__) - return failed + return failed def check_compile_units(dso_path): - """check all compile units in the given dso. - - Args: - dso_path: path to the dso. - - Returns: - True if everything looks fine otherwise False. - """ - - failed = set() - producer = '' - comp_path = '' - - readelf = subprocess.Popen( - ['llvm-dwarfdump', '--recurse-depth=0', dso_path], - stdout=subprocess.PIPE, - stderr=open(os.devnull, 'w'), - encoding='utf-8') - for l in readelf.stdout: - if 'DW_TAG_compile_unit' in l: - if producer: + """check all compile units in the given dso. + + Args: + dso_path: path to the dso. + + Returns: + True if everything looks fine otherwise False. + """ + + failed = set() + producer = "" + comp_path = "" + + readelf = subprocess.Popen( + ["llvm-dwarfdump", "--recurse-depth=0", dso_path], + stdout=subprocess.PIPE, + stderr=open(os.devnull, "w"), + encoding="utf-8", + ) + for l in readelf.stdout: + if "DW_TAG_compile_unit" in l: + if producer: + failed = failed.union( + check_compile_unit(dso_path, producer, comp_path) + ) + producer = "" + comp_path = "" + elif "DW_AT_producer" in l: + producer = l + elif "DW_AT_name" in l: + comp_path = os.path.join(comp_path, l.split(":")[-1].strip()) + elif "DW_AT_comp_dir" in l: + comp_path = os.path.join(l.split(":")[-1].strip(), comp_path) + if producer: failed = failed.union(check_compile_unit(dso_path, producer, comp_path)) - producer = '' - comp_path = '' - elif 'DW_AT_producer' in l: - producer = l - elif 'DW_AT_name' in l: - comp_path = os.path.join(comp_path, l.split(':')[-1].strip()) - elif 'DW_AT_comp_dir' in l: - comp_path = os.path.join(l.split(':')[-1].strip(), comp_path) - if producer: - failed = failed.union(check_compile_unit(dso_path, producer, comp_path)) - - if failed: - print('%s failed check: %s' % (dso_path, ' '.join(failed))) - return False - - return True + + if failed: + print("%s failed check: %s" % (dso_path, " ".join(failed))) + return False + + return True diff --git a/debug_info_test/check_exist.py b/debug_info_test/check_exist.py index 768d09bd..795cb470 100644 --- a/debug_info_test/check_exist.py +++ b/debug_info_test/check_exist.py @@ -14,89 +14,90 @@ from allowlist import is_allowlisted def check_debug_info(dso_path, readelf_content): - """Check whether debug info section exists in the elf file. + """Check whether debug info section exists in the elf file. - Args: - dso_path: path to the dso. - readelf_content: debug info dumped by command readelf. + Args: + dso_path: path to the dso. + readelf_content: debug info dumped by command readelf. - Returns: - True if debug info section exists, otherwise False. - """ + Returns: + True if debug info section exists, otherwise False. + """ - # Return True if it is allowlisted - if is_allowlisted('exist_debug_info', dso_path): - return True + # Return True if it is allowlisted + if is_allowlisted("exist_debug_info", dso_path): + return True - for l in readelf_content: - if 'debug_info' in l: - return True - return False + for l in readelf_content: + if "debug_info" in l: + return True + return False def check_producer(dso_path, readelf_content): - """Check whether DW_AT_producer exists in each compile unit. - - Args: - dso_path: path to the dso. - readelf_content: debug info dumped by command readelf. - - Returns: - True if DW_AT_producer exists in each compile unit, otherwise False. - Notice: If no compile unit in DSO, also return True. - """ - - # Return True if it is allowlisted - if is_allowlisted('exist_producer', dso_path): - return True - - # Indicate if there is a producer under each cu - cur_producer = False - - first_cu = True - producer_exist = True - - for l in readelf_content: - if 'DW_TAG_compile_unit' in l: - if not first_cu and not cur_producer: + """Check whether DW_AT_producer exists in each compile unit. + + Args: + dso_path: path to the dso. + readelf_content: debug info dumped by command readelf. + + Returns: + True if DW_AT_producer exists in each compile unit, otherwise False. + Notice: If no compile unit in DSO, also return True. + """ + + # Return True if it is allowlisted + if is_allowlisted("exist_producer", dso_path): + return True + + # Indicate if there is a producer under each cu + cur_producer = False + + first_cu = True + producer_exist = True + + for l in readelf_content: + if "DW_TAG_compile_unit" in l: + if not first_cu and not cur_producer: + producer_exist = False + break + first_cu = False + cur_producer = False + elif "DW_AT_producer" in l: + cur_producer = True + + # Check whether last producer of compile unit exists in the elf, + # also return True if no cu in the DSO. + if not first_cu and not cur_producer: producer_exist = False - break - first_cu = False - cur_producer = False - elif 'DW_AT_producer' in l: - cur_producer = True - # Check whether last producer of compile unit exists in the elf, - # also return True if no cu in the DSO. - if not first_cu and not cur_producer: - producer_exist = False - - return producer_exist + return producer_exist def check_exist_all(dso_path): - """check whether intended components exists in the given dso. + """check whether intended components exists in the given dso. - Args: - dso_path: path to the dso. + Args: + dso_path: path to the dso. - Returns: - True if everything looks fine otherwise False. - """ + Returns: + True if everything looks fine otherwise False. + """ - readelf = subprocess.Popen( - ['llvm-dwarfdump', '--recurse-depth=0', dso_path], - stdout=subprocess.PIPE, - stderr=open(os.devnull, 'w'), - encoding='utf-8') - readelf_content = list(readelf.stdout) + readelf = subprocess.Popen( + ["llvm-dwarfdump", "--recurse-depth=0", dso_path], + stdout=subprocess.PIPE, + stderr=open(os.devnull, "w"), + encoding="utf-8", + ) + readelf_content = list(readelf.stdout) - exist_checks = [check_debug_info, check_producer] + exist_checks = [check_debug_info, check_producer] - for e in exist_checks: - if not e(dso_path, readelf_content): - check_failed = e.__module__ + ': ' + e.__name__ - print('%s failed check: %s' % (dso_path, check_failed)) - return False + for e in exist_checks: + if not e(dso_path, readelf_content): + check_failed = e.__module__ + ": " + e.__name__ + print("%s failed check: %s" % (dso_path, check_failed)) + return False - return True + return True diff --git a/debug_info_test/check_icf.py b/debug_info_test/check_icf.py index a79d5e80..5e92ec13 100644 --- a/debug_info_test/check_icf.py +++ b/debug_info_test/check_icf.py @@ -13,41 +13,43 @@ import subprocess def check_identical_code_folding(dso_path): - """check whether chrome was built with identical code folding. - - Args: - dso_path: path to the dso. - - Returns: - False if the dso is chrome and it was not built with icf, - True otherwise. - """ - - if not dso_path.endswith('/chrome.debug'): - return True - - # Run 'nm' on the chrome binary and read the output. - nm = subprocess.Popen(['nm', dso_path], - stdout=subprocess.PIPE, - stderr=open(os.devnull, 'w'), - encoding='utf-8') - nm_output, _ = nm.communicate() - - # Search for addresses of text symbols. - text_addresses = re.findall('^[0-9a-f]+[ ]+[tT] ', nm_output, re.MULTILINE) - - # Calculate number of text symbols in chrome binary. - num_text_addresses = len(text_addresses) - - # Calculate number of unique text symbols in chrome binary. - num_unique_text_addresses = len(set(text_addresses)) - - # Check that the number of duplicate symbols is at least 10,000. - # - https://crbug.com/813272#c18 - if num_text_addresses - num_unique_text_addresses >= 10000: - return True - - print('%s was not built with ICF' % dso_path) - print(' num_text_addresses = %d' % num_text_addresses) - print(' num_unique_text_addresses = %d' % num_unique_text_addresses) - return False + """check whether chrome was built with identical code folding. + + Args: + dso_path: path to the dso. + + Returns: + False if the dso is chrome and it was not built with icf, + True otherwise. + """ + + if not dso_path.endswith("/chrome.debug"): + return True + + # Run 'nm' on the chrome binary and read the output. + nm = subprocess.Popen( + ["nm", dso_path], + stdout=subprocess.PIPE, + stderr=open(os.devnull, "w"), + encoding="utf-8", + ) + nm_output, _ = nm.communicate() + + # Search for addresses of text symbols. + text_addresses = re.findall("^[0-9a-f]+[ ]+[tT] ", nm_output, re.MULTILINE) + + # Calculate number of text symbols in chrome binary. + num_text_addresses = len(text_addresses) + + # Calculate number of unique text symbols in chrome binary. + num_unique_text_addresses = len(set(text_addresses)) + + # Check that the number of duplicate symbols is at least 10,000. + # - https://crbug.com/813272#c18 + if num_text_addresses - num_unique_text_addresses >= 10000: + return True + + print("%s was not built with ICF" % dso_path) + print(" num_text_addresses = %d" % num_text_addresses) + print(" num_unique_text_addresses = %d" % num_unique_text_addresses) + return False diff --git a/debug_info_test/check_ngcc.py b/debug_info_test/check_ngcc.py index 4a8241a0..60508691 100644 --- a/debug_info_test/check_ngcc.py +++ b/debug_info_test/check_ngcc.py @@ -11,20 +11,20 @@ from allowlist import is_allowlisted def not_by_gcc(dso_path, producer, comp_path): - """Check whether the compile unit is not built by gcc. + """Check whether the compile unit is not built by gcc. - Args: - dso_path: path to the elf/dso. - producer: DW_AT_producer contains the compiler command line. - comp_path: DW_AT_comp_dir + DW_AT_name. + Args: + dso_path: path to the elf/dso. + producer: DW_AT_producer contains the compiler command line. + comp_path: DW_AT_comp_dir + DW_AT_name. - Returns: - False if compiled by gcc otherwise True. - """ - if is_allowlisted('ngcc_comp_path', comp_path): - return True + Returns: + False if compiled by gcc otherwise True. + """ + if is_allowlisted("ngcc_comp_path", comp_path): + return True - if is_allowlisted('ngcc_dso_path', dso_path): - return True + if is_allowlisted("ngcc_dso_path", dso_path): + return True - return 'GNU C' not in producer + return "GNU C" not in producer diff --git a/debug_info_test/debug_info_test.py b/debug_info_test/debug_info_test.py index 52875b74..ab123e0b 100755 --- a/debug_info_test/debug_info_test.py +++ b/debug_info_test/debug_info_test.py @@ -12,56 +12,60 @@ import os import subprocess import sys -import check_icf import check_cus import check_exist +import check_icf + elf_checks = [ - check_exist.check_exist_all, check_cus.check_compile_units, - check_icf.check_identical_code_folding + check_exist.check_exist_all, + check_cus.check_compile_units, + check_icf.check_identical_code_folding, ] def scanelf(root): - """Find ELFs in root. + """Find ELFs in root. - Args: - root: root dir to start with the search. + Args: + root: root dir to start with the search. - Returns: - Filenames of ELFs in root. - """ - p = subprocess.Popen(['scanelf', '-y', '-B', '-F', '%F', '-R', root], - stdout=subprocess.PIPE, - encoding='utf-8') - return [l.strip() for l in p.stdout] + Returns: + Filenames of ELFs in root. + """ + p = subprocess.Popen( + ["scanelf", "-y", "-B", "-F", "%F", "-R", root], + stdout=subprocess.PIPE, + encoding="utf-8", + ) + return [l.strip() for l in p.stdout] def Main(argv): - if len(argv) < 2: - print('usage: %s [file|dir]') - return 1 - - files = [] - cand = argv[1] - if os.path.isfile(cand): - files = [cand] - elif os.path.isdir(cand): - files = scanelf(cand) - else: - print('usage: %s [file|dir]') - return 1 - - failed = False - for f in files: - for c in elf_checks: - if not c(f): - failed = True - - if failed: - return 1 - return 0 - - -if __name__ == '__main__': - sys.exit(Main(sys.argv)) + if len(argv) < 2: + print("usage: %s [file|dir]") + return 1 + + files = [] + cand = argv[1] + if os.path.isfile(cand): + files = [cand] + elif os.path.isdir(cand): + files = scanelf(cand) + else: + print("usage: %s [file|dir]") + return 1 + + failed = False + for f in files: + for c in elf_checks: + if not c(f): + failed = True + + if failed: + return 1 + return 0 + + +if __name__ == "__main__": + sys.exit(Main(sys.argv)) -- cgit v1.2.3 From c0041a9550814e402f661a560855ff99863cffb2 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Tue, 6 Sep 2022 12:12:02 -0700 Subject: remove `from __future__ import ...` directives These are only useful when we're running code in a Python 2.7 interpreter. Since we no longer support python2, drop these. BUG=b:244644217 TEST=run_tests_for.py shows no new failures Change-Id: Ief9a12b87a560ab38ca71668636874bcb434a0b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3877339 Reviewed-by: Ryan Beltran Commit-Queue: George Burgess Reviewed-by: Jordan Abrahams-Whitehead Tested-by: George Burgess --- debug_info_test/allowlist.py | 1 - debug_info_test/check_cus.py | 1 - debug_info_test/check_exist.py | 1 - debug_info_test/check_icf.py | 1 - debug_info_test/check_ngcc.py | 1 - debug_info_test/debug_info_test.py | 1 - 6 files changed, 6 deletions(-) (limited to 'debug_info_test') diff --git a/debug_info_test/allowlist.py b/debug_info_test/allowlist.py index 945c0440..3cccf293 100644 --- a/debug_info_test/allowlist.py +++ b/debug_info_test/allowlist.py @@ -5,7 +5,6 @@ """Allowlist functions.""" -from __future__ import print_function import glob import os diff --git a/debug_info_test/check_cus.py b/debug_info_test/check_cus.py index df2c4275..b2458e94 100644 --- a/debug_info_test/check_cus.py +++ b/debug_info_test/check_cus.py @@ -5,7 +5,6 @@ """check compile units.""" -from __future__ import print_function import os import subprocess diff --git a/debug_info_test/check_exist.py b/debug_info_test/check_exist.py index 795cb470..d51abe42 100644 --- a/debug_info_test/check_exist.py +++ b/debug_info_test/check_exist.py @@ -5,7 +5,6 @@ """check whether intended components exists in the given dso.""" -from __future__ import print_function import os import subprocess diff --git a/debug_info_test/check_icf.py b/debug_info_test/check_icf.py index 5e92ec13..8eca39a2 100644 --- a/debug_info_test/check_icf.py +++ b/debug_info_test/check_icf.py @@ -5,7 +5,6 @@ """check whether chrome was built with identical code folding.""" -from __future__ import print_function import os import re diff --git a/debug_info_test/check_ngcc.py b/debug_info_test/check_ngcc.py index 60508691..348fcc8a 100644 --- a/debug_info_test/check_ngcc.py +++ b/debug_info_test/check_ngcc.py @@ -5,7 +5,6 @@ """Check whether the compile unit is not built by gcc.""" -from __future__ import print_function from allowlist import is_allowlisted diff --git a/debug_info_test/debug_info_test.py b/debug_info_test/debug_info_test.py index ab123e0b..057921aa 100755 --- a/debug_info_test/debug_info_test.py +++ b/debug_info_test/debug_info_test.py @@ -6,7 +6,6 @@ """Test for debug info.""" -from __future__ import print_function import os import subprocess -- cgit v1.2.3 From fdcd39d5de4bd61cee94cf1e26416838d23092b8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 13 Sep 2022 14:19:58 -0400 Subject: Update license boilerplate text in source code files Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BUG=chromium:1098010 TEST=`repo upload` works Change-Id: Icb42e5012a87920c2cd13b666fb3e55e7e4fb3b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3891080 Auto-Submit: Mike Frysinger Tested-by: Mike Frysinger Commit-Queue: George Burgess Reviewed-by: George Burgess --- debug_info_test/allowlist.py | 2 +- debug_info_test/check_cus.py | 2 +- debug_info_test/check_exist.py | 2 +- debug_info_test/check_icf.py | 2 +- debug_info_test/check_ngcc.py | 2 +- debug_info_test/debug_info_test.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'debug_info_test') diff --git a/debug_info_test/allowlist.py b/debug_info_test/allowlist.py index 3cccf293..70bb776a 100644 --- a/debug_info_test/allowlist.py +++ b/debug_info_test/allowlist.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The ChromiumOS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/check_cus.py b/debug_info_test/check_cus.py index b2458e94..dbf22d08 100644 --- a/debug_info_test/check_cus.py +++ b/debug_info_test/check_cus.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The ChromiumOS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/check_exist.py b/debug_info_test/check_exist.py index d51abe42..863c591f 100644 --- a/debug_info_test/check_exist.py +++ b/debug_info_test/check_exist.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The ChromiumOS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/check_icf.py b/debug_info_test/check_icf.py index 8eca39a2..a717d81e 100644 --- a/debug_info_test/check_icf.py +++ b/debug_info_test/check_icf.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The ChromiumOS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/check_ngcc.py b/debug_info_test/check_ngcc.py index 348fcc8a..bbb58741 100644 --- a/debug_info_test/check_ngcc.py +++ b/debug_info_test/check_ngcc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2018 The ChromiumOS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/debug_info_test/debug_info_test.py b/debug_info_test/debug_info_test.py index 057921aa..c324bf4c 100755 --- a/debug_info_test/debug_info_test.py +++ b/debug_info_test/debug_info_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# Copyright 2018 The ChromiumOS Authors. All rights reserved. +# Copyright 2018 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -- cgit v1.2.3