You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/06/08 18:33:05 UTC

incubator-mynewt-newt git commit: newt debug; split features into separate words to debug script. This makes the feature passing the same as with download scripts.

Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop 3c0d218dc -> 92fa056af


newt debug; split features into separate words to debug script.
This makes the feature passing the same as with download scripts.


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/92fa056a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/92fa056a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/92fa056a

Branch: refs/heads/develop
Commit: 92fa056af6622eba1f3e1f755bbe6963ae81b671
Parents: 3c0d218
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Jun 8 11:31:51 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Jun 8 11:31:51 2016 -0700

----------------------------------------------------------------------
 newt/builder/load.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/92fa056a/newt/builder/load.go
----------------------------------------------------------------------
diff --git a/newt/builder/load.go b/newt/builder/load.go
index 3d32d8b..78b52d1 100644
--- a/newt/builder/load.go
+++ b/newt/builder/load.go
@@ -23,6 +23,7 @@ import (
 	"fmt"
 	"os"
 	"path/filepath"
+	"strings"
 
 	"mynewt.apache.org/newt/newt/project"
 	"mynewt.apache.org/newt/util"
@@ -87,10 +88,11 @@ func (b *Builder) Debug() error {
 	bspPath := b.Bsp.BasePath()
 	debugScript := filepath.Join(bspPath, b.Bsp.DebugScript)
 	binBaseName := b.AppBinBasePath()
-	featureString := b.FeatureString()
+	featureString := strings.Split(b.FeatureString(), " ")
 
 	os.Chdir(project.GetProject().Path())
 
-	cmdLine := []string{debugScript, bspPath, binBaseName, featureString}
+	cmdLine := []string{debugScript, bspPath, binBaseName}
+	cmdLine = append(cmdLine, featureString...)
 	return util.ShellInteractiveCommand(cmdLine)
 }