Convert TestCompatConfig test to use test fixtures am: a369c7b50d
am: 28cae4ca6f
am: 6fb02328eb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1626505 Change-Id: I852b9b300a6e98c765e3c968023399b1152faa20
This commit is contained in:
commit
a13f1c8dc0
|
@ -5989,7 +5989,9 @@ func TestJavaSDKLibrary_ImportOnly(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestCompatConfig(t *testing.T) {
|
||||
ctx := testApex(t, `
|
||||
result := apexFixtureFactory.
|
||||
Extend(java.PrepareForTestWithPlatformCompatConfig).
|
||||
RunTestWithBp(t, `
|
||||
apex {
|
||||
name: "myapex",
|
||||
key: "myapex.key",
|
||||
|
@ -6017,6 +6019,7 @@ func TestCompatConfig(t *testing.T) {
|
|||
apex_available: [ "myapex" ],
|
||||
}
|
||||
`)
|
||||
ctx := result.TestContext
|
||||
ensureExactContents(t, ctx, "myapex", "android_common_myapex_image", []string{
|
||||
"etc/compatconfig/myjar-platform-compat-config.xml",
|
||||
"javalib/myjar.jar",
|
||||
|
|
Loading…
Reference in New Issue