diff options
author | 2018-08-02 15:00:46 -0700 | |
---|---|---|
committer | 2018-08-07 15:51:21 -0700 | |
commit | e146e39fa6852d66f20c6140784086ce23858e84 (patch) | |
tree | 02745294183104aeb4a30e4106cdb9503b848eb0 /python/test.go | |
parent | 6bfe4eb42c79d4930a71ba5ad013177b1741713f (diff) |
Support 'test_config' into soong modules
Test: make general-tests
Bug: 110982517
Change-Id: Ib2eab2653fdfce6f699b85c9fbc64558b6d40363
Diffstat (limited to 'python/test.go')
-rw-r--r-- | python/test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/test.go b/python/test.go index 825e63cc4..39326f06e 100644 --- a/python/test.go +++ b/python/test.go @@ -25,8 +25,20 @@ func init() { android.RegisterModuleType("python_test", PythonTestFactory) } +type TestProperties struct { + // the name of the test configuration (for example "AndroidTest.xml") that should be + // installed with the module. + Test_config *string `android:"arch_variant"` +} + type testDecorator struct { *binaryDecorator + + testProperties TestProperties +} + +func (test *testDecorator) bootstrapperProps() []interface{} { + return append(test.binaryDecorator.bootstrapperProps(), &test.testProperties) } func (test *testDecorator) install(ctx android.ModuleContext, file android.Path) { |