scripts/lint: fix timing of lint tasks

Change-Id: I068cad315fd05ee235413d8230d454507b0a60e4
This commit is contained in:
Mya 2022-05-25 13:24:03 -05:00
parent 9153f37055
commit b74340b1d6

View File

@ -86,7 +86,9 @@ func main() {
start := time.Now()
log.Println(prefix, "running")
defer log.Println(prefix, "done", time.Since(start))
defer func() {
log.Println(prefix, "done", time.Since(start))
}()
_ = cmd.Run()
exitCode := cmd.ProcessState.ExitCode()
@ -164,6 +166,11 @@ func main() {
commands[1] = append(commands[1], newCommand(ctx, workDir, "golangci-lint", args...))
}
start := time.Now()
defer func() {
log.Println("total time", time.Since(start))
}()
for _, tier := range commands {
for _, cmd := range tier {
ok := submit(cmd)