Merge "Add phony name for robolectric tests" am: ffe2c918e9
am: 11a32a918b
am: 7c26a0cc17
am: 424be4ecef
am: 19673f3632
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1831866 Change-Id: If2cacb7c3a0c004946dc0f0c5d7fe5dbb1750c4a
This commit is contained in:
@@ -212,7 +212,13 @@ func (r *robolectricTest) GenerateAndroidBuildActions(ctx android.ModuleContext)
|
||||
installDeps = append(installDeps, installedData)
|
||||
}
|
||||
|
||||
ctx.InstallFile(installPath, ctx.ModuleName()+".jar", r.combinedJar, installDeps...)
|
||||
installed := ctx.InstallFile(installPath, ctx.ModuleName()+".jar", r.combinedJar, installDeps...)
|
||||
|
||||
if r.ExportedToMake() {
|
||||
// Soong handles installation here, but Make is usually what creates the phony rule that atest
|
||||
// uses to build the module. Create it here for now.
|
||||
ctx.Phony(ctx.ModuleName(), installed)
|
||||
}
|
||||
}
|
||||
|
||||
func generateRoboTestConfig(ctx android.ModuleContext, outputFile android.WritablePath,
|
||||
|
Reference in New Issue
Block a user