Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed May 9, 2023
1 parent 8ea0f3e commit 0a3ec50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions cmd/cbuild/commands/list/list_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ package list_test

import (
"cbuild/cmd/cbuild/commands"
"os"
"testing"

"github.com/stretchr/testify/assert"
)

func TestListEnvironmentCommand(t *testing.T) {
assert := assert.New(t)
os.Setenv("CMSIS_BUILD_ROOT", testRoot+"/run/bin")

t.Run("invalid args", func(t *testing.T) {
cmd := commands.NewRootCmd()
Expand All @@ -34,7 +32,7 @@ func TestListEnvironmentCommand(t *testing.T) {

t.Run("test help", func(t *testing.T) {
cmd := commands.NewRootCmd()
cmd.SetArgs([]string{"list", "toolchains", "-h"})
cmd.SetArgs([]string{"list", "environment", "-h"})
err := cmd.Execute()
assert.Nil(err)
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/builder/csolution/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (b CSolutionBuilder) listEnvironment(quiet bool) (envConfigs []string, err
}

// run "exe --version" command
versionStr, err := b.Runner.ExecuteCommand(path, false, "--version")
versionStr, err := b.Runner.ExecuteCommand(path, true, "--version")
if err != nil {
versionStr = ""
}
Expand Down

0 comments on commit 0a3ec50

Please sign in to comment.