Merge "Add a cargo2android flag to disable generating TEST_MAPPING." am: 4d82acfeee am: 4c0bf9ff7b
Original change: https://android-review.googlesource.com/c/platform/development/+/1667071 Change-Id: I088da12a08116d792814cce74aeb9c4e6f7cb49e
This commit is contained in:
@@ -1172,6 +1172,8 @@ class Runner(object):
|
|||||||
"""Dump all TEST_MAPPING files."""
|
"""Dump all TEST_MAPPING files."""
|
||||||
if self.dry_run:
|
if self.dry_run:
|
||||||
print('Dry-run skip dump of TEST_MAPPING')
|
print('Dry-run skip dump of TEST_MAPPING')
|
||||||
|
elif self.args.no_test_mapping:
|
||||||
|
print('Skipping generation of TEST_MAPPING')
|
||||||
else:
|
else:
|
||||||
test_mapping = TestMapping(None)
|
test_mapping = TestMapping(None)
|
||||||
for bp_file_name in self.bp_files:
|
for bp_file_name in self.bp_files:
|
||||||
@@ -1576,6 +1578,11 @@ def parse_args():
|
|||||||
default=False,
|
default=False,
|
||||||
help=('run cargo build with existing Cargo.lock ' +
|
help=('run cargo build with existing Cargo.lock ' +
|
||||||
'(used when some latest dependent crates failed)'))
|
'(used when some latest dependent crates failed)'))
|
||||||
|
parser.add_argument(
|
||||||
|
'--no-test-mapping',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Do not generate a TEST_MAPPING file. Use only to speed up debugging.')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--verbose',
|
'--verbose',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
|
|||||||
Reference in New Issue
Block a user