Make executable only if test copied successfully
This commit is contained in:
parent
1488d4b081
commit
dcc156272c
10
pew.go
10
pew.go
@ -223,11 +223,11 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
|
|||||||
// we should not exit because of testing 'insmod' part
|
// we should not exit because of testing 'insmod' part
|
||||||
// for kernel module
|
// for kernel module
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
_, err = q.Command("root", "chmod +x "+remoteTest)
|
||||||
_, err = q.Command("root", "chmod +x "+remoteTest)
|
if err != nil {
|
||||||
if err != nil {
|
return
|
||||||
return
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ka.Type == config.KernelModule {
|
if ka.Type == config.KernelModule {
|
||||||
|
Loading…
Reference in New Issue
Block a user