Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/master 04297b745 -> 2e04e0058


Export the 'test' identity prior to loading cfg.

Before this change, test-specific configuration in egg.yml files would not get 
applied.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/2e04e005
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/2e04e005
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/2e04e005

Branch: refs/heads/master
Commit: 2e04e0058f929ba62a95ebb6ca07b8ee490ddd11
Parents: 04297b7
Author: Christopher Collins <ccollins47...@gmail.com>
Authored: Thu Nov 5 11:40:41 2015 -0800
Committer: Christopher Collins <ccollins47...@gmail.com>
Committed: Thu Nov 5 11:40:41 2015 -0800

----------------------------------------------------------------------
 cli/clutch.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/2e04e005/cli/clutch.go
----------------------------------------------------------------------
diff --git a/cli/clutch.go b/cli/clutch.go
index e036719..d0ac36e 100644
--- a/cli/clutch.go
+++ b/cli/clutch.go
@@ -696,6 +696,9 @@ func (clutch *Clutch) testsExist(egg *Egg) error {
 func (clutch *Clutch) Test(t *Target, eggName string,
        exitOnFailure bool) error {
 
+       // The 'test' identity is implicitly exported during a package test.
+       t.Identities = append(t.Identities, "test")
+
        egg, err := clutch.ResolveEggName(eggName)
        if err != nil {
                return err
@@ -713,9 +716,6 @@ func (clutch *Clutch) Test(t *Target, eggName string,
        incls := []string{}
        libs := []string{}
 
-       // The 'test' identity is implicitly exported during a package test.
-       t.Identities = append(t.Identities, "test")
-
        // If there is a BSP:
        //     1. Calculate the include paths that it and its dependencies 
export.
        //        This set of include paths is accessible during all subsequent

Reply via email to