diff --git a/samples/subprocess.go b/samples/subprocess.go index a2ebbfa..52e3179 100644 --- a/samples/subprocess.go +++ b/samples/subprocess.go @@ -113,7 +113,15 @@ func buildMountSample() (toolPath string, err error) { } // Invoke mount_sample, returning a running command. -func invokeMountSample(path string, args []string) (cmd *exec.Cmd, err error) +func invokeMountSample(path string, args []string) (cmd *exec.Cmd, err error) { + cmd = exec.Command(path, args...) + if err = cmd.Start(); err != nil { + err = fmt.Errorf("Start: %v", err) + return + } + + return +} // Like SetUp, but doens't panic. func (t *SubprocessTest) initialize() (err error) {