invokeMountSample
parent
ee8e869e35
commit
27722cb25a
|
@ -113,7 +113,15 @@ func buildMountSample() (toolPath string, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Invoke mount_sample, returning a running command.
|
// 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.
|
// Like SetUp, but doens't panic.
|
||||||
func (t *SubprocessTest) initialize() (err error) {
|
func (t *SubprocessTest) initialize() (err error) {
|
||||||
|
|
Loading…
Reference in New Issue