Skip to content

Commit

Permalink
test: Remove BinDir global variable
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Siarkowicz <[email protected]>
  • Loading branch information
serathius committed Oct 17, 2022
1 parent 7366137 commit 5c3191b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/framework/e2e/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
)

var (
BinDir string
CertDir string

CertPath string
Expand Down Expand Up @@ -57,11 +56,11 @@ func InitFlags() {
binDirDef := integration.MustAbsPath("../../bin")
certDirDef := FixturesDir

flag.StringVar(&BinDir, "bin-dir", binDirDef, "The directory for store etcd and etcdctl binaries.")
binDir := flag.String("bin-dir", binDirDef, "The directory for store etcd and etcdctl binaries.")
flag.StringVar(&CertDir, "cert-dir", certDirDef, "The directory for store certificate files.")
flag.Parse()

BinPath = initBinPath(BinDir)
BinPath = initBinPath(*binDir)
CertPath = CertDir + "/server.crt"
PrivateKeyPath = CertDir + "/server.key.insecure"
CaPath = CertDir + "/ca.crt"
Expand Down

0 comments on commit 5c3191b

Please sign in to comment.