adding TestFiles to artifact config, transfers extra test files to VM
This commit is contained in:
9
pew.go
9
pew.go
@@ -251,6 +251,15 @@ func copyArtifactAndTest(q *qemu.System, ka config.Artifact,
|
||||
}
|
||||
res.Run.Ok = true
|
||||
|
||||
// Copy all test files to the remote machine
|
||||
for _,f := range ka.TestFiles {
|
||||
err = q.CopyFile(f.User,f.Local,f.Remote)
|
||||
if err != nil {
|
||||
log.Println("error copy err:", err, f.Local, f.Remote)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
res.Test.Output, err = testKernelModule(q, ka, remoteTest)
|
||||
if err != nil {
|
||||
log.Println(res.Test.Output, err)
|
||||
|
||||
Reference in New Issue
Block a user