mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
e2e: Update binary path with binDir
Signed-off-by: Yiqiao Pu <ypu@redhat.com>
This commit is contained in:
parent
96e018634a
commit
d0d8e49e20
@ -427,7 +427,7 @@ func etcdctlBackup(clus *etcdProcessCluster, dataDir, backupDir string) error {
|
||||
}
|
||||
|
||||
func mustEtcdctl(t *testing.T) {
|
||||
if !fileutil.Exist("../bin/etcdctl") {
|
||||
if !fileutil.Exist(binDir + "/etcdctl") {
|
||||
t.Fatalf("could not find etcdctl binary")
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ import (
|
||||
// TestReleaseUpgrade ensures that changes to master branch does not affect
|
||||
// upgrade from latest etcd releases.
|
||||
func TestReleaseUpgrade(t *testing.T) {
|
||||
lastReleaseBinary := "../bin/etcd-last-release"
|
||||
lastReleaseBinary := binDir + "/etcd-last-release"
|
||||
if !fileutil.Exist(lastReleaseBinary) {
|
||||
t.Skipf("%q does not exist", lastReleaseBinary)
|
||||
}
|
||||
@ -72,7 +72,7 @@ func TestReleaseUpgrade(t *testing.T) {
|
||||
if err := epc.procs[i].Stop(); err != nil {
|
||||
t.Fatalf("#%d: error closing etcd process (%v)", i, err)
|
||||
}
|
||||
epc.procs[i].cfg.execPath = "../bin/etcd"
|
||||
epc.procs[i].cfg.execPath = binDir + "/etcd"
|
||||
epc.procs[i].cfg.keepDataDir = true
|
||||
|
||||
if err := epc.procs[i].Restart(); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user