diff options
author | 2024-11-11 22:31:55 +0000 | |
---|---|---|
committer | 2024-11-11 22:56:40 +0000 | |
commit | 7103c4ffd6197d7c18b2f4474b134ad0441f9895 (patch) | |
tree | 40b3e5ae494870e801aca794055ed642c5770536 /java/bootclasspath_fragment_test.go | |
parent | 3f6305935f623bb150605c2d0342751e78924b4e (diff) |
Make Contents and Standalone_contents configurable
For use in Android.bp select statements
Test: m nothing --no-skip-soong-tests
Bug: 373868171
Change-Id: I2ca90dd1289c4cf7f728a00db93d08516856fdfa
Diffstat (limited to 'java/bootclasspath_fragment_test.go')
-rw-r--r-- | java/bootclasspath_fragment_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/bootclasspath_fragment_test.go b/java/bootclasspath_fragment_test.go index 60f1a50e1..3aa1258a3 100644 --- a/java/bootclasspath_fragment_test.go +++ b/java/bootclasspath_fragment_test.go @@ -191,7 +191,8 @@ func TestBootclasspathFragment_Coverage(t *testing.T) { checkContents := func(t *testing.T, result *android.TestResult, expected ...string) { module := result.Module("myfragment", "android_common").(*BootclasspathFragmentModule) - android.AssertArrayString(t, "contents property", expected, module.properties.Contents) + eval := module.ConfigurableEvaluator(android.PanickingConfigAndErrorContext(result.TestContext)) + android.AssertArrayString(t, "contents property", expected, module.properties.Contents.GetOrDefault(eval, nil)) } preparer := android.GroupFixturePreparers( |