Merge "Run apex_sepolicy_test for supported fs_type"
This commit is contained in:
@@ -231,7 +231,7 @@ var (
|
|||||||
|
|
||||||
apexSepolicyTestsRule = pctx.StaticRule("apexSepolicyTestsRule", blueprint.RuleParams{
|
apexSepolicyTestsRule = pctx.StaticRule("apexSepolicyTestsRule", blueprint.RuleParams{
|
||||||
Command: `${deapexer} --debugfs_path ${debugfs_static} list -Z ${in} > ${out}.fc` +
|
Command: `${deapexer} --debugfs_path ${debugfs_static} list -Z ${in} > ${out}.fc` +
|
||||||
`&& ${apex_sepolicy_tests} -f ${out}.fc && touch ${out}`,
|
` && ${apex_sepolicy_tests} -f ${out}.fc && touch ${out}`,
|
||||||
CommandDeps: []string{"${apex_sepolicy_tests}", "${deapexer}", "${debugfs_static}"},
|
CommandDeps: []string{"${apex_sepolicy_tests}", "${deapexer}", "${debugfs_static}"},
|
||||||
Description: "run apex_sepolicy_tests",
|
Description: "run apex_sepolicy_tests",
|
||||||
})
|
})
|
||||||
@@ -872,7 +872,8 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
|
|||||||
args["outCommaList"] = signedOutputFile.String()
|
args["outCommaList"] = signedOutputFile.String()
|
||||||
}
|
}
|
||||||
var validations android.Paths
|
var validations android.Paths
|
||||||
if suffix == imageApexSuffix {
|
// TODO(b/279688635) deapexer supports [ext4]
|
||||||
|
if suffix == imageApexSuffix && ext4 == a.payloadFsType {
|
||||||
validations = append(validations, runApexSepolicyTests(ctx, unsignedOutputFile.OutputPath))
|
validations = append(validations, runApexSepolicyTests(ctx, unsignedOutputFile.OutputPath))
|
||||||
}
|
}
|
||||||
ctx.Build(pctx, android.BuildParams{
|
ctx.Build(pctx, android.BuildParams{
|
||||||
|
Reference in New Issue
Block a user