Fully remove deprecated --no-test-mapping argument.

This argument has already been deprecated, but now there should be no
more uses of it.  Let's remove it and the remaining logic.

Test: Run the updater.
Change-Id: I8ab6f6fadba3b462567237d18ddc02cc4c22e62f
This commit is contained in:
Joel Galenson
2021-08-18 09:39:36 -07:00
parent a4648dfcba
commit c3bfaf8a1e

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: