Do not fail for kernel module if there is no test script
This commit is contained in:
parent
75f5636d31
commit
5864109080
6
pew.go
6
pew.go
@ -234,9 +234,9 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
|
|||||||
"> "+remoteTest+
|
"> "+remoteTest+
|
||||||
" && chmod +x "+remoteTest)
|
" && chmod +x "+remoteTest)
|
||||||
} else {
|
} else {
|
||||||
log.Println("copy file err", err)
|
log.Println("No test, use dummy")
|
||||||
// we should not exit because of testing 'insmod' part
|
q.Command("user", "echo '#!/bin/sh' "+
|
||||||
// for kernel module
|
"> "+remoteTest+" && chmod +x "+remoteTest)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_, err = q.Command("root", "chmod +x "+remoteTest)
|
_, err = q.Command("root", "chmod +x "+remoteTest)
|
||||||
|
Loading…
Reference in New Issue
Block a user