Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1423f26

Browse files
committed
Simplify windows
1 parent 1213212 commit 1423f26

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

agent/agent_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,14 +870,17 @@ func TestAgent_Metadata(t *testing.T) {
870870
t.Parallel()
871871

872872
t.Run("Basic", func(t *testing.T) {
873+
if runtime.GOOS == "windows" {
874+
// Shell scripting in Windows is a pain, so but we test that it works in the simpler "CollectOnce"
875+
// test.
876+
t.Skip()
877+
}
873878
t.Parallel()
879+
874880
dir := t.TempDir()
875881
const reportInterval = 2
876882
greetingPath := filepath.Join(dir, "greeting")
877883
script := "echo hello | tee " + greetingPath
878-
if runtime.GOOS == "windows" {
879-
script = "powershell " + script
880-
}
881884
_, client, _, _, _ := setupAgent(t, agentsdk.Manifest{
882885
Metadata: []codersdk.WorkspaceAgentMetadataDescription{
883886
{

0 commit comments

Comments
 (0)