func startGarden(argv ...string) *runner.RunningGarden { if networkModulePath := os.Getenv("NETWORK_MODULE_PATH"); networkModulePath != "" { argv = append(argv, "--networkModulePath="+networkModulePath) } return runner.Start(gardenBin, iodaemonBin, nstarBin, argv...) }
func startGarden(argv ...string) *runner.RunningGarden { gardenBin, err := gexec.Build("github.com/cloudfoundry-incubator/guardian/cmd/guardian") Expect(err).NotTo(HaveOccurred()) iodaemonBin, err := gexec.Build("github.com/cloudfoundry-incubator/guardian/rundmc/iodaemon/cmd/iodaemon") Expect(err).NotTo(HaveOccurred()) return runner.Start(gardenBin, iodaemonBin, argv...) }