Merge "Fully remove deprecated --no-test-mapping argument." am: 52469f2093 am: 7622c162e6 am: 313f801fc6

Original change: https://android-review.googlesource.com/c/platform/development/+/1798316

Change-Id: Ieba64055153db6298c1f81ec5439a6ab5cce4a64
This commit is contained in:
Treehugger Robot
2021-08-19 09:54:58 +00:00
committed by Automerger Merge Worker

View File

@@ -1264,8 +1264,7 @@ class Runner(object):
self.bp_files.add(name)
license_section = self.read_license(name)
with open(name, 'w') as outf:
print_args = filter(lambda x: x != "--no-test-mapping", sys.argv[1:])
outf.write(ANDROID_BP_HEADER.format(args=' '.join(print_args)))
outf.write(ANDROID_BP_HEADER.format(args=' '.join(sys.argv[1:])))
outf.write('\n')
outf.write(license_section)
outf.write('\n')
@@ -1749,11 +1748,6 @@ def get_parser():
'--add-module-block',
type=str,
help='Add the contents of the given file to the main module.')
parser.add_argument(
'--no-test-mapping',
action='store_true',
default=False,
help='Deprecated. Has no effect.')
parser.add_argument(
'--verbose',
action='store_true',
@@ -1798,7 +1792,7 @@ def dump_config(parser, args):
non_default_args = {}
for arg in args_dict:
if (args_dict[arg] != parser.get_default(arg) and arg != 'dump_config_and_exit'
and arg != 'no_test_mapping' and arg != 'config'):
and arg != 'config'):
non_default_args[arg.replace('_', '-')] = args_dict[arg]
# Write to the specified file.
with open(args.dump_config_and_exit, 'w') as f: