1
0

Print current tag at start

This commit is contained in:
dump_stack() 2023-03-16 09:41:49 +00:00
parent d5d9cce517
commit 51e4cfec30
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

5
pew.go
View File

@ -106,6 +106,11 @@ func (cmd PewCmd) Run(g *Globals) (err error) {
dockerTimeout = cmd.DockerTimeout dockerTimeout = cmd.DockerTimeout
} }
if cmd.Tag == "" {
cmd.Tag = fmt.Sprintf("%d", time.Now().Unix())
log.Println("Tag: " + cmd.Tag)
}
err = performCI(ka, kcfg, cmd.Binary, cmd.Test, stop, err = performCI(ka, kcfg, cmd.Binary, cmd.Test, stop,
qemuTimeout, dockerTimeout, qemuTimeout, dockerTimeout,
cmd.Max, cmd.Runs, cmd.Dist, cmd.Tag, cmd.Max, cmd.Runs, cmd.Dist, cmd.Tag,