Handle empty build dir correctly
This commit is contained in:
parent
249f11d059
commit
530b98e513
2
debug.go
2
debug.go
@ -198,8 +198,10 @@ func (cmd *DebugCmd) Run(g *Globals) (err error) {
|
||||
// Copy all test files to the remote machine
|
||||
for _, f := range ka.TestFiles {
|
||||
if f.Local[0] != '/' {
|
||||
if res.BuildDir != "" {
|
||||
f.Local = buildDir + "/" + f.Local
|
||||
}
|
||||
}
|
||||
err = q.CopyFile(f.User, f.Local, f.Remote)
|
||||
if err != nil {
|
||||
log.Print("error copy err:", err, f.Local, f.Remote)
|
||||
|
Loading…
Reference in New Issue
Block a user