Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Feb 20, 2025
1 parent 4172b92 commit b843e0c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/integrations/realcluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,18 @@ func (c *cluster) stop() {
_ = syscall.Kill(pid, syscall.SIGKILL)
}
}
log.Info("cluster destroyed", zap.String("tag", c.tag))
log.Info("cluster stopped", zap.String("tag", c.tag))
}

func (c *cluster) deploy() {
re := c.re
curPath, err := os.Getwd()
log.Info(curPath)
re.NoError(err)
re.NoError(os.Chdir("../../.."))
curPath1, err := os.Getwd()
log.Info(curPath1)
re.NoError(err)

if !fileExists("third_bin") || !fileExists("third_bin/tikv-server") || !fileExists("third_bin/tidb-server") || !fileExists("third_bin/tiflash") {
log.Info("downloading binaries...")
Expand Down Expand Up @@ -199,6 +203,9 @@ func (c *cluster) deploy() {
// Avoid to change the dir before execute `tiup playground`.
time.Sleep(10 * time.Second)
re.NoError(os.Chdir(curPath))
curPath2, err := os.Getwd()
log.Info(curPath2)
re.NoError(err)
}

// collectPids will collect the pids of the processes.
Expand Down

0 comments on commit b843e0c

Please sign in to comment.