Skip to content

Commit 9d0b4cc

Browse files
committed
fix: skip bash tests on Windows
Change-Id: I8838e8c2d38766ad142e1f5bb224a2f82ac17d6b Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent dadeab8 commit 9d0b4cc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

codersdk/toolsdk/bash_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build !windows
2+
// +build !windows
3+
14
package toolsdk_test
25

36
import (

codersdk/toolsdk/toolsdk_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"encoding/json"
66
"os"
7+
"runtime"
78
"sort"
89
"sync"
910
"testing"
@@ -397,6 +398,9 @@ func TestTools(t *testing.T) {
397398
})
398399

399400
t.Run("WorkspaceSSHExec", func(t *testing.T) {
401+
if runtime.GOOS == "windows" {
402+
t.Skip("WorkspaceSSHExec is not supported on Windows")
403+
}
400404
// Setup workspace exactly like main SSH tests
401405
client, workspace, agentToken := setupWorkspaceForAgent(t)
402406

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy