Access output files thru providers in Soong tests.
The outputFiles field on ModuleBase will be removed next. Bug: 358425833 Test: CI Change-Id: I6d665ac13134d9278e5908f64c454366bc6bca5e
This commit is contained in:
@@ -69,7 +69,7 @@ func TestDroiddoc(t *testing.T) {
|
||||
"bar-doc/a.java": nil,
|
||||
"bar-doc/b.java": nil,
|
||||
})
|
||||
barStubsOutputs := ctx.ModuleForTests("bar-stubs", "android_common").OutputFiles(t, "")
|
||||
barStubsOutputs := ctx.ModuleForTests("bar-stubs", "android_common").OutputFiles(ctx, t, "")
|
||||
if len(barStubsOutputs) != 1 {
|
||||
t.Errorf("Expected one output from \"bar-stubs\" got %s", barStubsOutputs)
|
||||
}
|
||||
|
Reference in New Issue
Block a user