multiproduct_kati: Support skipping known-broken products
This can make it easier to add build/soong/build_test.sh to continuous build branches to catch new breaks, but where some products are known to be broken. Test: build/soong/build_test.bash --skip-products aosp_arm,aosp_arm64 Change-Id: Ib240570b68957077047ca75b78658429cb8c6a49
This commit is contained in:
parent
6fc8d9126c
commit
9957b9ccdc
|
@ -55,6 +55,8 @@ var onlySoong = flag.Bool("only-soong", false, "Only run product config and Soon
|
|||
|
||||
var buildVariant = flag.String("variant", "eng", "build variant to use")
|
||||
|
||||
var skipProducts = flag.String("skip-products", "", "comma-separated list of products to skip (known failures, etc)")
|
||||
|
||||
const errorLeadingLines = 20
|
||||
const errorTrailingLines = 20
|
||||
|
||||
|
@ -225,8 +227,27 @@ func main() {
|
|||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
products := strings.Fields(vars["all_named_products"])
|
||||
log.Verbose("Got product list:", products)
|
||||
productsList := strings.Fields(vars["all_named_products"])
|
||||
|
||||
products := make([]string, 0, len(productsList))
|
||||
skipList := strings.Split(*skipProducts, ",")
|
||||
skipProduct := func(p string) bool {
|
||||
for _, s := range skipList {
|
||||
if p == s {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
for _, product := range productsList {
|
||||
if !skipProduct(product) {
|
||||
products = append(products, product)
|
||||
} else {
|
||||
log.Verbose("Skipping: ", product)
|
||||
}
|
||||
}
|
||||
|
||||
log.Verbose("Got product list: ", products)
|
||||
|
||||
status.SetTotal(len(products))
|
||||
|
||||
|
|
Loading…
Reference in New Issue