Skip to content

Commit fe73989

Browse files
chore: run test on linux only
1 parent 89a5caf commit fe73989

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

cli/open.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ func (r *RootCmd) openVSCode() *serpent.Command {
136136
if !ok {
137137
return xerrors.New("container missing volume for `devcontainer.local_folder`")
138138
}
139-
140-
directory = filepath.FromSlash(directory)
141139
}
142140

143141
break

cli/open_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ func TestOpenVSCode_NoAgentDirectory(t *testing.T) {
293293
func TestOpenVSCodeDevContainer(t *testing.T) {
294294
t.Parallel()
295295

296+
if runtime.GOOS != "linux" {
297+
t.Skip("DevContainers are only supported for agents on Linux")
298+
}
299+
296300
agentName := "agent1"
297301
agentDir, err := filepath.Abs(filepath.FromSlash("/tmp"))
298302
require.NoError(t, err)
@@ -465,6 +469,10 @@ func TestOpenVSCodeDevContainer(t *testing.T) {
465469
func TestOpenVSCodeDevContainer_NoAgentDirectory(t *testing.T) {
466470
t.Parallel()
467471

472+
if runtime.GOOS != "linux" {
473+
t.Skip("DevContainers are only supported for agents on Linux")
474+
}
475+
468476
agentName := "agent1"
469477

470478
containerName := testutil.GetRandomName(t)

0 commit comments

Comments
 (0)