From e2aec2709b36707d8621cf4c6c22c33f65d078e7 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Fri, 16 Dec 2022 12:18:14 +0200 Subject: [PATCH] test: Fix `scaletest/reconnectingpty` commands for use in powershell (#5439) --- scaletest/reconnectingpty/run_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scaletest/reconnectingpty/run_test.go b/scaletest/reconnectingpty/run_test.go index 1112ec10d8..30241a053d 100644 --- a/scaletest/reconnectingpty/run_test.go +++ b/scaletest/reconnectingpty/run_test.go @@ -31,7 +31,8 @@ func Test_Runner(t *testing.T) { runner := reconnectingpty.NewRunner(client, reconnectingpty.Config{ AgentID: agentID, Init: codersdk.ReconnectingPTYInit{ - Command: "echo 'hello world' && sleep 1", + // Use ; here because it's powershell compatible (vs &&). + Command: "echo 'hello world'; sleep 1", }, LogOutput: true, }) @@ -195,7 +196,7 @@ func Test_Runner(t *testing.T) { runner := reconnectingpty.NewRunner(client, reconnectingpty.Config{ AgentID: agentID, Init: codersdk.ReconnectingPTYInit{ - Command: "echo 'hello world' && sleep 1", + Command: "echo 'hello world'; sleep 1", }, ExpectOutput: "hello world", LogOutput: false, @@ -219,7 +220,7 @@ func Test_Runner(t *testing.T) { runner := reconnectingpty.NewRunner(client, reconnectingpty.Config{ AgentID: agentID, Init: codersdk.ReconnectingPTYInit{ - Command: "echo 'hello world' && sleep 1", + Command: "echo 'hello world'; sleep 1", }, ExpectOutput: "bello borld", LogOutput: false,