MCPcopy
hub / github.com/fatedier/frp / RunFrps

Method RunFrps

test/e2e/framework/process.go:96–108  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

94}
95
96func (f *Framework) RunFrps(args ...string) (*process.Process, string, error) {
97 p := process.NewWithEnvs(TestContext.FRPServerPath, args, f.osEnvs)
98 f.serverProcesses = append(f.serverProcesses, p)
99 err := p.Start()
100 if err != nil {
101 return p, p.Output(), err
102 }
103 select {
104 case <-p.Done():
105 case <-time.After(2 * time.Second):
106 }
107 return p, p.Output(), nil
108}
109
110func (f *Framework) RunFrpc(args ...string) (*process.Process, string, error) {
111 p := process.NewWithEnvs(TestContext.FRPClientPath, args, f.osEnvs)

Callers 8

chaos.goFile · 0.80
cmd.goFile · 0.80
config.goFile · 0.80
chaos.goFile · 0.80
token_source.goFile · 0.80
cmd.goFile · 0.80
oidc.goFile · 0.80
config.goFile · 0.80

Calls 4

NewWithEnvsFunction · 0.92
OutputMethod · 0.80
StartMethod · 0.65
DoneMethod · 0.45

Tested by

no test coverage detected