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:
@@ -2919,9 +2919,9 @@ func TestJavaLibraryOutputFilesRel(t *testing.T) {
|
||||
bar := result.ModuleForTests("bar", "android_common")
|
||||
baz := result.ModuleForTests("baz", "android_common")
|
||||
|
||||
fooOutputPaths := foo.OutputFiles(t, "")
|
||||
barOutputPaths := bar.OutputFiles(t, "")
|
||||
bazOutputPaths := baz.OutputFiles(t, "")
|
||||
fooOutputPaths := foo.OutputFiles(result.TestContext, t, "")
|
||||
barOutputPaths := bar.OutputFiles(result.TestContext, t, "")
|
||||
bazOutputPaths := baz.OutputFiles(result.TestContext, t, "")
|
||||
|
||||
android.AssertPathsRelativeToTopEquals(t, "foo output path",
|
||||
[]string{"out/soong/.intermediates/foo/android_common/javac/foo.jar"}, fooOutputPaths)
|
||||
|
Reference in New Issue
Block a user