diff options
author | Jeff Gaston <jeffrygaston@google.com> | 2017-08-09 15:13:12 -0700 |
---|---|---|
committer | Jeff Gaston <jeffrygaston@google.com> | 2017-10-30 15:00:19 -0700 |
commit | c3e2844dfeba7f07ba10bd72730f649f82759150 (patch) | |
tree | 56576f297f3e50d3b5c41b05ab83c599654f107f /context_test.go | |
parent | cb42130440468da892816245b7c2ddccdfbc42cb (diff) | |
download | android_build_blueprint-c3e2844dfeba7f07ba10bd72730f649f82759150.tar.gz android_build_blueprint-c3e2844dfeba7f07ba10bd72730f649f82759150.tar.bz2 android_build_blueprint-c3e2844dfeba7f07ba10bd72730f649f82759150.zip |
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
Diffstat (limited to 'context_test.go')
-rw-r--r-- | context_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ import ( "bytes" "strings" "testing" + + "github.com/google/blueprint/parser" ) type Walker interface { @@ -96,7 +98,7 @@ func TestContextParse(t *testing.T) { } `) - _, _, 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 { |