Skip to content

Commit ec70f2a

Browse files
committed
Use solution in our integration tests also
1 parent 6096d09 commit ec70f2a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/testhelpers/e2e/session.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ import (
44
"fmt"
55
"io/fs"
66
"os"
7-
"os/exec"
87
"path/filepath"
98
"regexp"
109
"runtime"
1110
"strings"
1211
"testing"
1312
"time"
1413

15-
"github.com/ActiveState/cli/internal/subshell"
16-
"github.com/ActiveState/cli/pkg/platform/model"
17-
"github.com/ActiveState/cli/pkg/platform/model/buildplanner"
18-
"github.com/ActiveState/cli/pkg/projectfile"
1914
"github.com/ActiveState/termtest"
2015
"github.com/go-openapi/strfmt"
2116
"github.com/google/uuid"
2217
"github.com/phayes/permbits"
2318
"github.com/stretchr/testify/require"
2419

20+
"github.com/ActiveState/cli/internal/subshell"
21+
"github.com/ActiveState/cli/pkg/platform/model"
22+
"github.com/ActiveState/cli/pkg/platform/model/buildplanner"
23+
"github.com/ActiveState/cli/pkg/projectfile"
24+
2525
"github.com/ActiveState/cli/internal/condition"
2626
"github.com/ActiveState/cli/internal/config"
2727
"github.com/ActiveState/cli/internal/constants"
@@ -298,7 +298,7 @@ func (s *Session) SpawnCmdWithOpts(exe string, optSetters ...SpawnOptSetter) *Sp
298298
args = spawnOpts.Args
299299
}
300300

301-
cmd := exec.Command(shell, args...)
301+
cmd := osutils.Command(shell, args...)
302302

303303
cmd.Env = spawnOpts.Env
304304
if spawnOpts.Dir != "" {

0 commit comments

Comments
 (0)