Browse Source

Merge pull request #8453 from heyitsanthony/fix-ctlcov

etcdctl: unset ETCDCTL_ARGS on cov builds
Anthony Romano 8 years ago
parent
commit
60d46a3626
1 changed files with 1 additions and 0 deletions
  1. 1 0
      etcdctl/ctlv3/ctl_cov.go

+ 1 - 0
etcdctl/ctlv3/ctl_cov.go

@@ -27,6 +27,7 @@ func Start() {
 	// ETCDCTL_ARGS=etcdctl_test arg1 arg2...
 	// SetArgs() takes arg1 arg2...
 	rootCmd.SetArgs(strings.Split(os.Getenv("ETCDCTL_ARGS"), "\xe7\xcd")[1:])
+	os.Unsetenv("ETCDCTL_ARGS")
 	if err := rootCmd.Execute(); err != nil {
 		command.ExitWithError(command.ExitError, err)
 	}