Support for a custom list of Blueprints files to parse
Bug: 64363847
Test: BLUEPRINT_LIST_FILE=out/.module_paths/Android.bp.list minibp
Change-Id: Id7f8cb1ab3a6684b3f8265d77bb32413957f1c93
diff --git a/context_test.go b/context_test.go
index 1cc051d..c6bc08c 100644
--- a/context_test.go
+++ b/context_test.go
@@ -18,6 +18,8 @@
"bytes"
"strings"
"testing"
+
+ "github.com/google/blueprint/parser"
)
type Walker interface {
@@ -96,7 +98,7 @@
}
`)
- _, _, errs := ctx.parseOne(".", "Blueprint", r, nil)
+ _, _, errs := ctx.parseOne(".", "Blueprint", r, parser.NewScope(nil))
if len(errs) > 0 {
t.Errorf("unexpected parse errors:")
for _, err := range errs {