Merge "Set rust_test modules as NATIVE_TESTS"

am: 22e3f36b28

Change-Id: I0da76b62184d92acbb61fe9f633b52ff202fdd2d
This commit is contained in:
Chih-hung Hsieh 2019-11-15 19:07:06 -08:00 committed by android-build-merger
commit 645386892c
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ func (binary *binaryDecorator) AndroidMk(ctx AndroidMkContext, ret *android.Andr
func (test *testDecorator) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkData) {
test.binaryDecorator.AndroidMk(ctx, ret)
ret.Class = "NATIVE_TESTS"
stem := String(test.baseCompiler.Properties.Stem)
if stem != "" && !strings.HasSuffix(ctx.Name(), "_"+stem) {
// Avoid repeated suffix in the module name.