MCPcopy
hub / github.com/perkeep/perkeep / buildSelf

Method buildSelf

dev/devcam/test.go:107–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107func (c *testCmd) buildSelf() error {
108 args := []string{
109 "install",
110 filepath.FromSlash("./dev/devcam"),
111 }
112 cmd := exec.Command("go", args...)
113 env := c.env()
114 cmd.Env = env.Flat()
115 cmd.Stdout = os.Stdout
116 cmd.Stderr = os.Stderr
117 if err := cmd.Run(); err != nil {
118 return fmt.Errorf("Error building devcam: %v", err)
119 }
120 return nil
121}
122
123func (c *testCmd) runTests(args []string) error {
124 targs := []string{"test"}

Callers 1

RunCommandMethod · 0.95

Calls 4

envMethod · 0.95
FlatMethod · 0.80
CommandMethod · 0.65
RunMethod · 0.65

Tested by

no test coverage detected