Add recursive deny to allowlists.
Also change behavior of the recursive check - the more specific directory will be chosen now, for competing recursives. This is part of an effort to enable mixed_libc and mixed_droid on internal master - many denies are required and this would simplify the effort. Test: m nothing Change-Id: I7de05337644d8e1804078c66669dd0b2d65f3e71
This commit is contained in:
@@ -71,6 +71,20 @@ func TestConvertAllModulesInPackage(t *testing.T) {
|
||||
},
|
||||
packageDir: "a",
|
||||
},
|
||||
{
|
||||
prefixes: allowlists.Bp2BuildConfig{
|
||||
"a": allowlists.Bp2BuildDefaultFalseRecursively,
|
||||
"a/b": allowlists.Bp2BuildDefaultTrue,
|
||||
},
|
||||
packageDir: "a/b",
|
||||
},
|
||||
{
|
||||
prefixes: allowlists.Bp2BuildConfig{
|
||||
"a": allowlists.Bp2BuildDefaultFalseRecursively,
|
||||
"a/b": allowlists.Bp2BuildDefaultTrueRecursively,
|
||||
},
|
||||
packageDir: "a/b/c",
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range testCases {
|
||||
@@ -133,6 +147,20 @@ func TestModuleOptIn(t *testing.T) {
|
||||
},
|
||||
packageDir: "a",
|
||||
},
|
||||
{
|
||||
prefixes: allowlists.Bp2BuildConfig{
|
||||
"a": allowlists.Bp2BuildDefaultFalseRecursively,
|
||||
"a/b": allowlists.Bp2BuildDefaultTrue,
|
||||
},
|
||||
packageDir: "a/b/c",
|
||||
},
|
||||
{
|
||||
prefixes: allowlists.Bp2BuildConfig{
|
||||
"a": allowlists.Bp2BuildDefaultTrueRecursively,
|
||||
"a/b": allowlists.Bp2BuildDefaultFalseRecursively,
|
||||
},
|
||||
packageDir: "a/b/c",
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range testCases {
|
||||
|
Reference in New Issue
Block a user