1
0

Handle empty build dir correctly

此提交包含在:
2023-05-01 14:53:52 +00:00
父節點 249f11d059
當前提交 530b98e513

查看文件

@ -198,8 +198,10 @@ func (cmd *DebugCmd) Run(g *Globals) (err error) {
// Copy all test files to the remote machine // Copy all test files to the remote machine
for _, f := range ka.TestFiles { for _, f := range ka.TestFiles {
if f.Local[0] != '/' { if f.Local[0] != '/' {
if res.BuildDir != "" {
f.Local = buildDir + "/" + f.Local f.Local = buildDir + "/" + f.Local
} }
}
err = q.CopyFile(f.User, f.Local, f.Remote) err = q.CopyFile(f.User, f.Local, f.Remote)
if err != nil { if err != nil {
log.Print("error copy err:", err, f.Local, f.Remote) log.Print("error copy err:", err, f.Local, f.Remote)