summaryrefslogtreecommitdiff
path: root/python/androidmk.go
diff options
context:
space:
mode:
author Dan Shi <dshi@google.com> 2020-09-21 12:11:02 -0700
committer Dan Shi <dshi@google.com> 2020-09-21 14:36:43 -0700
commit31949121500fb6b22482e4e6d6aa1c21aa8a0ad8 (patch)
tree1c9d5dfb1b8b549cf14ae31406bdfd11905662b7 /python/androidmk.go
parentf793d7deb4f3a5c07d61cf50b7480b2584b81fbb (diff)
Add support of test data to python_host_test
Bug: none Test: m -j vts_vndk_abi_test confirm abi_dump.zip found next to test binary Change-Id: I834dddfc13eb9e7addd234307b085b16124db234
Diffstat (limited to 'python/androidmk.go')
-rw-r--r--python/androidmk.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/androidmk.go b/python/androidmk.go
index 247b80dc0..8ad5889b5 100644
--- a/python/androidmk.go
+++ b/python/androidmk.go
@@ -15,11 +15,12 @@
package python
import (
- "android/soong/android"
"fmt"
"io"
"path/filepath"
"strings"
+
+ "android/soong/android"
)
type subAndroidMkProvider interface {
@@ -74,6 +75,11 @@ func (p *testDecorator) AndroidMk(base *Module, ret *android.AndroidMkData) {
if !BoolDefault(p.binaryProperties.Auto_gen_config, true) {
fmt.Fprintln(w, "LOCAL_DISABLE_AUTO_GENERATE_TEST_CONFIG := true")
}
+
+ if len(p.data) > 0 {
+ fmt.Fprintln(w, "LOCAL_TEST_DATA :=",
+ strings.Join(android.AndroidMkDataPaths(p.data), " "))
+ }
})
base.subAndroidMk(ret, p.binaryDecorator.pythonInstaller)
}