Skip to content

Commit

Permalink
Merge pull request #5885 from planetscale/docker-for-e2e
Browse files Browse the repository at this point in the history
test case run into docker
  • Loading branch information
deepthi authored Mar 9, 2020
2 parents 22cae3d + 5b07a28 commit b7627dc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion go/test/endtoend/cluster/topo_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,15 @@ func (topo *TopoProcess) SetupEtcd() (err error) {
"--initial-cluster", fmt.Sprintf("%s=%s", topo.Name, topo.PeerURL),
)

errFile, _ := os.Create(path.Join(topo.DataDirectory, "topo-stderr.txt"))
err = createDirectory(topo.DataDirectory, 0700)
if err != nil && !os.IsExist(err) {
return err
}
errFile, err := os.Create(path.Join(topo.DataDirectory, "topo-stderr.txt"))
if err != nil {
return err
}

topo.proc.Stderr = errFile

topo.proc.Env = append(topo.proc.Env, os.Environ()...)
Expand Down

0 comments on commit b7627dc

Please sign in to comment.