summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-09-24 15:47:17 -0700
committer Colin Cross <ccross@android.com> 2021-09-27 15:56:26 -0700
commitcfb0f5e102e2a4a946c4f6e38d429b132ed11fc5 (patch)
tree6bfb8467ff45fab94e52331a9d6eaafa4fae46f9 /java/java.go
parentf3bfd02aa9c6e3f3f9e1c65aefe0283235f2ce38 (diff)
Support per-testcase directories in all test suites
There are cases where two modules try to install the same test data into CTS, which results in collisions when CTS puts the data for all tests in the same directory. Add a flag that allows enabling a per-testcase directory for an individual test for all test suites. Bug: 193168159 Test: cts-tradefed run commandAndExit CtsBionicTestCases Change-Id: If034723e8fe937ca71d3e2d39b7d46702e41bc8c
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 94c12bdbb..655d51f94 100644
--- a/java/java.go
+++ b/java/java.go
@@ -749,6 +749,9 @@ type testProperties struct {
// Names of modules containing JNI libraries that should be installed alongside the test.
Jni_libs []string
+
+ // Install the test into a folder named for the module in all test suites.
+ Per_testcase_directory *bool
}
type hostTestProperties struct {
@@ -760,6 +763,9 @@ type testHelperLibraryProperties struct {
// list of compatibility suites (for example "cts", "vts") that the module should be
// installed into.
Test_suites []string `android:"arch_variant"`
+
+ // Install the test into a folder named for the module in all test suites.
+ Per_testcase_directory *bool
}
type prebuiltTestProperties struct {