Skip to content

Commit 5c216c4

Browse files
committed
test: suppress Windows batch command echo
Entire-Checkpoint: 01KYT38WQJ2E5TET6V0M9YQETV
1 parent a1bfe9a commit 5c216c4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/entire/cli/agent/hook_command_windows_exec_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ func runWindowsWrapper(t *testing.T, wrapper string, entirePresent bool) (string
4141
t.Fatalf("write run.bat: %v", err)
4242
}
4343

44-
cmd := exec.CommandContext(t.Context(), "cmd.exe", "/d", "/s", "/c", batPath)
44+
// /q suppresses batch command echo so stdout contains only wrapper output.
45+
cmd := exec.CommandContext(t.Context(), "cmd.exe", "/d", "/q", "/s", "/c", batPath)
4546
cmd.Dir = runDir // clean CWD so `where` can't find a stray entire next to us
4647
out, err := cmd.Output()
4748
if err != nil {

0 commit comments

Comments
 (0)