MCPcopy Create free account
hub / github.com/PasarGuard/node / runCommand

Function runCommand

backend/wireguard/integration_e2e_test.go:89–97  ·  view source on GitHub ↗
(t *testing.T, name string, args ...string)

Source from the content-addressed store, hash-verified

87}
88
89func runCommand(t *testing.T, name string, args ...string) string {
90 t.Helper()
91 cmd := exec.Command(name, args...)
92 output, err := cmd.CombinedOutput()
93 if err != nil {
94 t.Fatalf("command failed: %s %s\nerror: %v\noutput: %s", name, strings.Join(args, " "), err, string(output))
95 }
96 return string(output)
97}
98
99func runCommandNoFail(name string, args ...string) {
100 _ = exec.Command(name, args...).Run()

Callers 3

createNamespaceFixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected