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 b4372f0
Showing 1 changed file with 1 addition and 3 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

0 comments on commit b4372f0

Please sign in to comment.