1
0

Add option for timeout after starting of the qemu vm before tests

This commit is contained in:
dump_stack() 2023-05-08 19:56:10 +00:00
parent 8ec4f13364
commit 17a70fdb2d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

4
pew.go
View File

@ -43,6 +43,7 @@ type PewCmd struct {
ArtifactConfig string `help:"path to artifact config" type:"path"`
QemuTimeout time.Duration `help:"timeout for qemu"`
QemuAfterStartTimeout time.Duration `help:"timeout after starting of the qemu vm before tests"`
DockerTimeout time.Duration `help:"timeout for docker"`
Threshold float64 `help:"reliablity threshold for exit code" default:"1.00"`
@ -633,6 +634,9 @@ func (cmd PewCmd) testArtifact(swg *sizedwaitgroup.SizedWaitGroup,
}
defer q.Stop()
slog.Debug().Msgf("wait %v", cmd.QemuAfterStartTimeout)
time.Sleep(cmd.QemuAfterStartTimeout)
go func() {
time.Sleep(time.Minute)
for !q.Died {