Add option for timeout after starting of the qemu vm before tests
This commit is contained in:
parent
8ec4f13364
commit
17a70fdb2d
4
pew.go
4
pew.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user