Skip to content

Commit

Permalink
e2e fixup spawn cov
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Jul 20, 2017
1 parent 80506d6 commit 45e02e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions e2e/etcd_spawn_cov.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ func spawnEtcd(args []string) (*expect.ExpectProcess, error) {
}

env := []string{}

if args[1] == "grpc-proxy" {
// avoid test flag conflicts in coverage enabled etcd by putting flags in ETCDCOV_ARGS
env := []string{"ETCDCOV_ARGS=" + strings.Join(args, "\xe7\xcd")}
env = append(env, os.Environ()...)
env = append(os.Environ(), "ETCDCOV_ARGS="+strings.Join(args, "\xe7\xcd"))
} else {
env = args2env(args[1:])
}
Expand Down

0 comments on commit 45e02e1

Please sign in to comment.