From 403c9d3e7a7ad9dc8a20b11a6301eed2be84c357 Mon Sep 17 00:00:00 2001 From: Dan Shi Date: Thu, 13 Feb 2020 14:49:33 -0800 Subject: [PATCH] Allow vts config to be packaged in other test suites Bug: 149249068 Test: m vts-core Change-Id: I582ceec53cf7747f5754613cf774871c84776cf5 --- android/vts_config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/android/vts_config.go b/android/vts_config.go index 86f6e7281..9a1df7c99 100644 --- a/android/vts_config.go +++ b/android/vts_config.go @@ -17,6 +17,7 @@ package android import ( "fmt" "io" + "strings" ) func init() { @@ -26,6 +27,8 @@ func init() { type vtsConfigProperties struct { // Override the default (AndroidTest.xml) test manifest file name. Test_config *string + // Additional test suites to add the test to. + Test_suites []string `android:"arch_variant"` } type VtsConfig struct { @@ -50,7 +53,8 @@ func (me *VtsConfig) AndroidMk() AndroidMkData { fmt.Fprintf(w, "LOCAL_TEST_CONFIG := %s\n", *me.properties.Test_config) } - fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE := vts") + fmt.Fprintf(w, "LOCAL_COMPATIBILITY_SUITE := vts %s\n", + strings.Join(me.properties.Test_suites, " ")) }, } return androidMkData