Do not modules in files called "Blueprints".

The only case for this was Blueprint itself at build/blueprint, but with
that being a part of Soong, this special case is not necessary anymore.

Test: Presubmits.
Change-Id: Icc51cd80bd43f936a97018061cfbf76fc385e4c3
This commit is contained in:
Lukacs T. Berki
2021-09-02 11:46:24 +02:00
parent 7686708a43
commit b838b0a147
9 changed files with 171 additions and 174 deletions

View File

@@ -13,7 +13,7 @@ var packageTests = []struct {
{
name: "package must not accept visibility and name properties",
fs: map[string][]byte{
"top/Blueprints": []byte(`
"top/Android.bp": []byte(`
package {
name: "package",
visibility: ["//visibility:private"],
@@ -21,21 +21,21 @@ var packageTests = []struct {
}`),
},
expectedErrors: []string{
`top/Blueprints:5:14: unrecognized property "licenses"`,
`top/Blueprints:3:10: unrecognized property "name"`,
`top/Blueprints:4:16: unrecognized property "visibility"`,
`top/Android.bp:5:14: unrecognized property "licenses"`,
`top/Android.bp:3:10: unrecognized property "name"`,
`top/Android.bp:4:16: unrecognized property "visibility"`,
},
},
{
name: "multiple packages in separate directories",
fs: map[string][]byte{
"top/Blueprints": []byte(`
"top/Android.bp": []byte(`
package {
}`),
"other/Blueprints": []byte(`
"other/Android.bp": []byte(`
package {
}`),
"other/nested/Blueprints": []byte(`
"other/nested/Android.bp": []byte(`
package {
}`),
},
@@ -43,7 +43,7 @@ var packageTests = []struct {
{
name: "package must not be specified more than once per package",
fs: map[string][]byte{
"top/Blueprints": []byte(`
"top/Android.bp": []byte(`
package {
default_visibility: ["//visibility:private"],
default_applicable_licenses: ["license"],