aboutsummaryrefslogtreecommitdiffstats
path: root/android/namespace_test.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-01-26 18:27:02 -0800
committerDan Willemsen <dwillemsen@google.com>2018-01-26 20:21:18 -0800
commit6e72ef722507a78320e5a07a61ccf85b513e73f2 (patch)
tree3e1745214b4bd19a7988ebe234de403e94478a85 /android/namespace_test.go
parentad4692d5af06b879d82f244574e710a6f4ccf93f (diff)
downloadbuild_soong-6e72ef722507a78320e5a07a61ccf85b513e73f2.tar.gz
build_soong-6e72ef722507a78320e5a07a61ccf85b513e73f2.tar.bz2
build_soong-6e72ef722507a78320e5a07a61ccf85b513e73f2.zip
Move namespace mutator earlier to support defaults
The prebuilts and defaults mutators start adding some dependencies, so for them to be able to reference imported modules, we need to run the namespace mutator earlier. Test: m nothing Test: Try to use a global defaults module from a namespace Change-Id: I6e853d20e32251d0fd33c8b2dcc26c0695b808fd
Diffstat (limited to 'android/namespace_test.go')
-rw-r--r--android/namespace_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/namespace_test.go b/android/namespace_test.go
index 9ab186b0..a6fc9d59 100644
--- a/android/namespace_test.go
+++ b/android/namespace_test.go
@@ -606,7 +606,7 @@ func setupTestFromFiles(bps map[string][]byte) (ctx *TestContext, errs []error)
ctx.MockFileSystem(bps)
ctx.RegisterModuleType("test_module", ModuleFactoryAdaptor(newTestModule))
ctx.RegisterModuleType("soong_namespace", ModuleFactoryAdaptor(NamespaceFactory))
- ctx.PreDepsMutators(RegisterNamespaceMutator)
+ ctx.PreArchMutators(RegisterNamespaceMutator)
ctx.Register()
_, errs = ctx.ParseBlueprintsFiles("Android.bp")