1
0

Do not fail for kernel module if there is no test script

This commit is contained in:
dump_stack() 2019-06-15 06:58:17 +00:00
parent 75f5636d31
commit 5864109080
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

6
pew.go
View File

@ -234,9 +234,9 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
"> "+remoteTest+
" && chmod +x "+remoteTest)
} else {
log.Println("copy file err", err)
// we should not exit because of testing 'insmod' part
// for kernel module
log.Println("No test, use dummy")
q.Command("user", "echo '#!/bin/sh' "+
"> "+remoteTest+" && chmod +x "+remoteTest)
}
} else {
_, err = q.Command("root", "chmod +x "+remoteTest)