1
0

feat: show qemu/docker timeouts at tests startup

This commit is contained in:
dump_stack() 2024-10-05 20:36:17 +00:00
parent c3e5a138b4
commit ad5254ded3
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -239,15 +239,16 @@ func (cmd *PewCmd) Run(g *Globals) (err error) {
}
if cmd.QemuTimeout != 0 {
log.Info().Msgf("Set qemu timeout to %s", cmd.QemuTimeout)
ka.Qemu.Timeout.Duration = cmd.QemuTimeout
}
if cmd.DockerTimeout != 0 {
log.Info().Msgf("Set docker timeout to %s", cmd.DockerTimeout)
ka.Docker.Timeout.Duration = cmd.DockerTimeout
}
log.Info().Msgf("Qemu timeout: %s", ka.Qemu.Timeout.Duration)
log.Info().Msgf("Docker timeout: %s", ka.Docker.Timeout.Duration)
if cmd.Tag == "" {
cmd.Tag = fmt.Sprintf("%d", time.Now().Unix())
}