1
0

Handle empty build dir correctly

This commit is contained in:
dump_stack() 2023-05-01 14:53:52 +00:00
parent 249f11d059
commit 530b98e513
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -198,7 +198,9 @@ 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] != '/' {
f.Local = buildDir + "/" + f.Local
if res.BuildDir != "" {
f.Local = buildDir + "/" + f.Local
}
}
err = q.CopyFile(f.User, f.Local, f.Remote)
if err != nil {