MCPcopy Create free account
hub / github.com/cortexproject/cortex / RunCommandAndGetOutput

Function RunCommandAndGetOutput

integration/e2e/util.go:33–36  ·  view source on GitHub ↗
(name string, args ...string)

Source from the content-addressed store, hash-verified

31)
32
33func RunCommandAndGetOutput(name string, args ...string) ([]byte, error) {
34 cmd := exec.Command(name, args...)
35 return cmd.CombinedOutput()
36}
37
38func RunCommandWithTimeoutAndGetOutput(timeout time.Duration, name string, args ...string) ([]byte, error) {
39 ctx, cancel := context.WithTimeout(context.Background(), timeout)

Callers 7

NewScenarioFunction · 0.85
shutdownMethod · 0.85
existDockerNetworkFunction · 0.85
StartMethod · 0.85
StopMethod · 0.85
KillMethod · 0.85
WaitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected