MCPcopy
hub / github.com/kubernetes/test-infra / Output

Method Output

kubetest/process/process.go:365–370  ·  view source on GitHub ↗

Output returns cmd.Output(), potentially timing out in the process.

(cmd *exec.Cmd)

Source from the content-addressed store, hash-verified

363
364// Output returns cmd.Output(), potentially timing out in the process.
365func (c *Control) Output(cmd *exec.Cmd) ([]byte, error) {
366 var stdout bytes.Buffer
367 cmd.Stdout = &stdout
368 err := c.FinishRunning(cmd)
369 return stdout.Bytes(), err
370}
371
372// NoOutput ignores all output from the command, potentially timing out in the process.
373func (c *Control) NoOutput(cmd *exec.Cmd) error {

Callers 15

TestOutputFunction · 0.95
TestOutputOutputsFunction · 0.95
createSystemdLogfileFunction · 0.80
createFullSystemdLogfileFunction · 0.80
uploadLogfilesToGCSFunction · 0.80
getKubectlVersionFunction · 0.80
listNodesFunction · 0.80
listKubemarkNodesFunction · 0.80
diffResourcesFunction · 0.80
listResourcesFunction · 0.80
clusterSizeFunction · 0.80
kubemarkUpFunction · 0.80

Calls 1

FinishRunningMethod · 0.95

Tested by 2

TestOutputFunction · 0.76
TestOutputOutputsFunction · 0.76