Merge "When merging tests, prefer non-blocklisted ones." am: 14b71a757b
Original change: https://android-review.googlesource.com/c/platform/development/+/1768885 Change-Id: Ie05d4b9349efb392268c3a346aa4cf1df42612c7
This commit is contained in:
@@ -304,6 +304,9 @@ class Crate(object):
|
||||
# which can be changed if self is a merged test module.
|
||||
self.decide_module_type()
|
||||
if should_merge_test:
|
||||
if (self.main_src in self.runner.args.test_blocklist and
|
||||
not other.main_src in self.runner.args.test_blocklist):
|
||||
self.main_src = other.main_src
|
||||
self.srcs.append(other.main_src)
|
||||
# use a short unique name as the merged module name.
|
||||
prefix = self.root_pkg + '_tests'
|
||||
|
||||
Reference in New Issue
Block a user