Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: skip TestReinitializeAgent until we can adapt the script for win…
…dows
  • Loading branch information
SasSwart committed May 21, 2025
commit 4433d6a309e259fdd7c532cb6d6a18233c7e5f2c
7 changes: 3 additions & 4 deletions enterprise/coderd/workspaceagents_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,12 @@ func TestReinitializeAgent(t *testing.T) {
t.Skip("dbmem cannot currently claim a workspace")
}

var startupScript string
if runtime.GOOS == "windows" {
startupScript = fmt.Sprintf("cmd.exe /c set >> \"%s\" && echo --- >> \"%s\"", tempAgentLog.Name(), tempAgentLog.Name())
} else {
startupScript = fmt.Sprintf("printenv >> %s; echo '---\n' >> %s", tempAgentLog.Name(), tempAgentLog.Name())
t.Skip("test startup script is not supported on windows")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: link the GH issue here

}

startupScript := fmt.Sprintf("printenv >> %s; echo '---\n' >> %s", tempAgentLog.Name(), tempAgentLog.Name())

db, ps := dbtestutil.NewDB(t)
// GIVEN a live enterprise API with the prebuilds feature enabled
client, user := coderdenttest.New(t, &coderdenttest.Options{
Expand Down
Loading